Thread: Noob question again..........

  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
    Chappell Hill, Texas
    Posts
    2,332
    You are missing several key instructions, like
    Code:
    #include <iostream>
    using namespace std ; 
    int main() { 
       // insert your code here 
       return 0 ; 
    }
    Mainframe assembler programmer by trade. C coder when I can.

  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,079
    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, 08: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, 05:40 AM
  5. Noob question ( little dos program )
    By Demon1s in forum C++ Programming
    Replies: 13
    Last Post: 04-04-2003, 09:28 PM