Noob question again..........

This is a discussion on Noob question again.......... within the C++ Programming forums, part of the General Programming Boards category; Ok, my cout code is not working and I have no reason why. Code: cout<<"Enter your heath.\n"; Thanks for the ...

  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    22

    Noob question again..........

    Ok, my cout code is not working and I have no reason why.

    Code:
    cout<<"Enter your heath.\n";

    Thanks for the help.

  2. #2
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Katy, Texas
    Posts
    2,309
    You are missing several key instructions, like
    Code:
    #include <iostream>
    using namespace std ; 
    int main() { 
       // insert your code here 
       return 0 ; 
    }
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    230
    I can't see any problems with your statement. Perhaps you should post some more code?
    I might not be a pro, but I'm usually right

  4. #4
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    Maybe you missed a semicolon on the line above.

  5. #5
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,077
    Code:
                                   In function 'int main(void)'
    Line 6 - /usr/bin/source.cpp - expected 'l' before't'
    The error is likely what is above, I'd just like to add this little humorous warning.
    Sent from my iPadŽ

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. quick noob question
    By thanatos1 in forum C# Programming
    Replies: 2
    Last Post: 06-17-2009, 09:28 PM
  2. another noob question
    By clb2003 in forum C Programming
    Replies: 4
    Last Post: 02-12-2009, 01:28 PM
  3. Noob printf question
    By lolguy in forum C Programming
    Replies: 3
    Last Post: 12-14-2008, 08:08 PM
  4. Very noob question :(.
    By GamerProduction in forum Tech Board
    Replies: 4
    Last Post: 04-14-2007, 06:40 AM
  5. Noob question ( little dos program )
    By Demon1s in forum C++ Programming
    Replies: 13
    Last Post: 04-04-2003, 09:28 PM

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