General C++ Programming - February 2010 (Page 9)

Base Class Method UnResolved
 
hello, i have a strange problem with library compilation, read below for details, I have a mai...
[4 replies] Last: i m in a hurry at the moment, i will post the class diagram later to g... (by maxchirag)
making a copy of data allocated by 'new'
 
class Triangle { vertex *vx1,*vx2,*vx3; int index; }; class vertex { double x,y,z; ...
[16 replies] Last: I had to create my own Copy function. Tedious and highly risky( http:/... (by luckycusp)
Problems overloading the operator<< ( multiple definition) (1,2)
 
I have a parent class and some that derive from it. I want to have a function that will mimic the j...
[31 replies] Last: Good for you. :) (by olredixsis)
by Sensei
Grade calculation program (do while loop)!!
 
Hi, I'm in an entry level C++ course in college. I never had a programming experience before and I r...
[1 reply] : This is the code for something relitively similar but way less specifi... (by Sensei)
Problem with ostringstream on mac in libstdc++ debug mode
 
Hello, I recently ran into a problem while porting my c++ application to Xcode on my Mac. Th...
[3 replies] Last: This is a better link: http://developer.apple.com/Mac/library/relea... (by jonny5cents)
by nXaaa
expected initializer before t ...
 
My .cpp Semester::Semester(QString name) : m_SemesterName(name) { m_Credits = 0; QList<MyC...
[2 replies] Last: ty! (by nXaaa)
by sirkip
Coverting int values to text
 
Im trying to do an if statement saying that: // first takes the users input for the int variable ...
[5 replies] Last: wow i feel stupid now.... haha thanks. Dont worry about it sirkip... (by Seraphimsan)
2D vector representation of adjacency list
 
I have an input text file test.txt which contains adjacency list. test.txt 0 0 1 4 0 0 0 2 3 ...
[4 replies] Last: Google around "vector matrix class c++" for more. (by Duthomhas)
Can intialize a variable
 
The program runs but gets a bug at the end when I enter h, heres the code #include <iostream> ...
[5 replies] Last: @farooq: You are correct about the if statement; however h is a char s... (by Zhuge)
can any1 split the input string
 
Hi All, I am new to c++, I want to split the string and add some thing to it for example let say...
[4 replies] Last: Thank you Denis its worked fine.. Can you help me in splitting the ... (by farooq124in)
Swapping Strings Using User Defined Functions
 
How to swap 2 strings using reference variables and a user defined function?
[2 replies] Last: You got me wrong.....Actually i am new to this forum .... so i didnt... (by abhi201090)
by tnngo
Writing Functions
 
I need some advice on how to proceed with writing a display and writing a function to save the updat...
[1 reply] : /********************************************************************... (by tnngo)
by GBDA
WHY WONT THIS COMPILE?? HELLPP!!
 
// Program Description: Your aunt runs a business selling knives. // She hire...
[14 replies] Last: Next time don't post your question on 3 different forums (by Disch)
Structure Memory Layout?
 
I'm playing around with a personal project and I had a question about a struct layout in memory. I h...
[7 replies] Last: Ah, just found a way to do this using #pragma directives. #inclu... (by mackabee)
Whats the totoal memory used by my set<ulong>?
 
Greetings, Is there any way to get the total memory used by a set of ulongs (or any object for t...
[14 replies] Last: Well I didn't have to buy 30 GB of RAM. It took about 9 GB to hold 1 b... (by Deviouscola)
by KC2010
working w/arrays
 
I have gotten this far with this prog. but need urgent help.the prog will compute tax for individual...
[4 replies] Last: I have made some changes to the program but with change came more trou... (by KC2010)
Copying the elements of a 2D Array to a 1D Array (C++)
 
Hello, I am a new programmer. I am trying to copy the elements of this 20x3 array into a 1x60 or 60...
[6 replies] Last: moorecm is right provided it's a "straight" MD array (not nested new o... (by Disch)
by imi
compile-time test whether template class implements something
 
Hi, is there a way to test at compile time, whether the template parameter type implements some f...
[5 replies] Last: While this concept does seem extremely strange to me, I'll admit that ... (by closed account 1yR4jE8b)
2D vector function
 
I am trying to pass a vector to a function and the function print out the vector to the console wind...
[6 replies] Last: eek! now you're passing by value! no no, pass by reference (or e... (by Disch)
Read a delimited flat file with fields on first row
 
Hello everyone, I`d need to read a typical text file with an unknown number of fields (and type, ...
[4 replies] Last: thank you for the answers.. the fact is I used the tern database to si... (by anotheruser)
February 2010 Pages: 1... 7891011... 21
  Archived months: [jan2010] [mar2010]

This is an archived page. To post a new message, go to the current page.