Thread: Could someone tell me

  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
    404

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    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