When overloading the comparison operators, do they return an int or a bool data type?
Type: Posts; User: niudago
When overloading the comparison operators, do they return an int or a bool data type?
Sorry about that, I guess I just read it too fast or something, thanks for the help though.
I found the problem with my code, and the reason I was getting about 10 pages of errors:
cout << "Number of random data values in array (0-200)? ";
cin >> num_values >> endl;
cout << "Bound on...
I'm using g++ in Unix, Solaris i believe.
Here's the errors:
assign2.cc: In function `int main()':
assign2.cc:16: `cout' undeclared (first use this function)
assign2.cc:16: (Each undeclared...
I'm creating a program that fills arrays with random numbers, then sorts them in ascending and descending order. I have no problem with that. My question is, why am i getting errors that cout and...
Ok, I found the error, it's in my function, and I've modified it a little, and am still getting errors, but I know where the errors are: the errors are in the infile.read() statement. Something...
I am trying to compile the following code, and I keep getting parse errors. Can someone please tell me what these errors are, and what may be wrong with my code that I am getting them.
...
I am writing a function to open a binary file. It has two arguments, the first is a struct which the files info will be read and stored to, the second is a C style string containing the name of the...
Thanks for the help. I thought without the typedef I had to put struct in the function call. Thanks for clearing this up for me.
I'm working on a program right now that requires me to create a few structures and functions, and the functions must call the structures I've created. When I compile my program, I get various scope...
Hey everyone. I'm a student at NIU and am looking for a little help to start me off on my first assignment. I just recently changed to a comp sci major, and am new to C++, but I have taken a course...