Could someone tell me

This is a discussion on Could someone tell me within the C++ Programming forums, part of the General Programming Boards category; cout << "max(1,2)==" << max(1,2) << endl; cout << "max(2,1)==" << max(2,1) << endl; cout << "max('a','z')==" << max('a','z') << ...

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    32

    Could someone tell me

    cout << "max(1,2)==" << max(1,2) << endl;
    cout << "max(2,1)==" << max(2,1) << endl;
    cout << "max('a','z')==" << max('a','z') << endl;
    cout << "max(3.14,2.72)==" << max(3.14,2.72) << endl;


    what does cout mean? i can not compile w/o stating a cout.

  2. #2
    Registered User carrotcake1029's Avatar
    Join Date
    Apr 2008
    Posts
    401

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    23,790
    Moved to C++ programming forum.

    I suggest that you post the smallest and simplest program that demonstrates the error.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21