Search:

Type: Posts; User: niudago

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,899

    Quick question about operator overloading

    When overloading the comparison operators, do they return an int or a bool data type?
  2. i didn't catch that

    Sorry about that, I guess I just read it too fast or something, thanks for the help though.
  3. Not at all what I thought

    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...
  4. More info

    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...
  5. I'm REALLY confused. Why isn't cout or cin working here?

    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...
  6. Replies
    3
    Views
    931

    My modified code; still need help

    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...
  7. Replies
    3
    Views
    931

    Debugging Parse errors

    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.


    ...
  8. Replies
    2
    Views
    846

    Opening a file in binary

    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...
  9. Replies
    2
    Views
    1,145

    Thanks for the help. I thought without 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.
  10. Replies
    2
    Views
    1,145

    Calling structs in functinos

    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...
  11. Replies
    2
    Views
    805

    main () command line arguments

    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...
Results 1 to 11 of 12