General C++ Programming - September 2008 (Page 4)

inline member functions in source file and not in header file
 
Hi, I have a project with a lot of inline funcions, and I would like to remove them from the header...
[5 replies] Last: Yes, inline is always a suggestion. You can mark functions you would... (by Duthomhas)
Constructor (and Destructor?) problem
 
Anyone know how to invoke constructor in the malloc/realloc-ed classes? I have this code for refe...
[5 replies] Last: You must use new when instantiating classes. You cannot use malloc. (by jsmith)
while loop seemingly refuses to stop
 
Okay, here's the code: while (L.notEmpty) { cout << "( " << L.Next().x << " ; " << L.Ne...
[12 replies] Last: template <class T> ChainedList<T>::~ChainedList() { Node<T>* ... (by helios)
homework assistance needed.
 
I'm taking a programming class this semester and I need help with my homework below. I'm studying e...
[1 reply] : This is all i have....not sure where to go from here HOMEWORK #... (by jcorral79)
Getting the closest value in an array
 
Hi, I'm new at programming, so I'm grateful for any clues/pointers. I have a list of dates and cor...
[19 replies] Last: It would be easier if you could you post the errors here. And about... (by satm2008)
Strange behaviour - Pointer to an object of a class
 
Hi guys, I have a strange problem here. Please provide me with an explanation for this. here is the ...
[1 reply] : First of all, memberFunction() prints out its parameter, not the value... (by jsmith)
Problem with reading data from file
 
Hi everybody. I have problem with reading data from file. I think this code must work but it doesnt...
[1 reply] : Define "doesn't work". Line 10: s can be left uninitialized. (by helios)
Can someone do this program for me? Easy
 
Could someone quickly do this for me? Its very easy. Write a program to ask the user for odometer...
[1 reply] : Yes, someone could . But it is unlikely someone will from this foru... (by Faldrax)
Assign Value to Local Variable via Function
 
void setValue () { theVariable = 10; } int main () { int theVariable = 0; setValue();...
[5 replies] Last: Yes. (by firedraco)
H3LP!!! Ordering machine Program C++
 
anyone please help me!!! i have made this program #include<iostream.h> #include<conio.h> #i...
[5 replies] Last: Yeah, functions > gotos in this case...I would just make functions: ... (by firedraco)
by Mobius
Scripting
 
How would one go about calling a script from outside the program, then gathering it's output to use ...
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ (by Zaita)
Writing 2 programs. ...\n.....output in seconds... (1,2)
 
Hi, I am very new to C++ and am trying to write a couple of programs. For the first one, I am trying...
[24 replies] Last: That's not the point of the exercise, and that's not what the problem ... (by helios)
stl vector wrapper
 
Hi everybody I have the next problem. In one class A I have a vector which stores elements o...
[no replies]
Converting A Variable Type
 
I am using a class that requires type char* . To be more specific, I am using a class called, "CINI...
[4 replies] Last: CIniReader iniRead((char*)fileDir.c_str()); C++ complains about imp... (by helios)
Fatal Error LNK2001
 
Hi all, I have some problems with my program. My source is follow //Address.h #include<string> ...
[2 replies] Last: yeah, i know that. but i forgot that im using VS 2005, when i use vs ... (by devilheart)
by komal
substr()
 
Im trying to use the substr() function but I constantly get this error saying substr undeclared iden...
[3 replies] Last: http://www.cplusplus.com/reference/string/string/substr.html (by helios)
String buffer overflow
 
Hi all I'm using a 'STRING' variable to store the entire contents of a file. Is there any possibi...
[1 reply] : Is it a STRING or a string? They're different, you know? The former i... (by helios)
how to compare "T" "F" answers
 
I am writing a program for a class i am taking and I am having issues trying to learn how to compare...
[8 replies] Last: strcmp(examAnswer , stuAnswers ); if (strcmp >0 || strcmp <0) ... (by helios)
by vvadan
Shared Memory -- Pointer problem
 
HI I have created an object pool in shared memory each object encapsulates another object which ...
[no replies]
Complex Numbers
 
I have an application that works with complex number. It simply asks the user to input 3 numbers (m...
[6 replies] Last: Well, the compiler wouldn't let me do the scalar division, but here's ... (by helios)
September 2008 Pages: 123456... 11
  Archived months: [aug2008] [oct2008]

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