Simple message help...

This is a discussion on Simple message help... within the C++ Programming forums, part of the General Programming Boards category; EVERY time I use the "cout" function I always get an error, now somone... could the tell what is wrong ...

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    7

    Simple message help...

    EVERY time I use the "cout" function I always get an error, now somone... could the tell what is wrong with this?

    PHP Code:
    cout << "Text goes here..." << endl
    AND of course... theres other in code in the app, but I'm wondering why that is not working... (I might know the reson, I will try that... but anyway... If it dosn't work, I will say somthing).

    edit1: BAAA, it says PHP... but its C++.

    edit2: It dosn't work...

    edit3: I found out the problem! A mod can close this... the problem was I was using "1" instide of "L". (when I actuly coded, the code up there is correct).
    Last edited by blah569; 10-04-2005 at 07:33 PM.

  2. #2
    Registered User
    Join Date
    Jul 2005
    Posts
    45
    I can answer that one !
    you're doing:
    Code:
    cout <<
    when it's
    Code:
    cout<<
    Hope it helps

  3. #3
    Registered User
    Join Date
    Oct 2005
    Posts
    7
    Quote Originally Posted by flicka
    I can answer that one !
    you're doing:
    Code:
    cout <<
    when it's
    Code:
    cout<<
    Hope it helps
    Ok, thanks for the help anyways, but I already solved the problem...
    . That wasn't the problem, cout << still works. Thanks for the help anyways .

  4. #4
    Registered Loser nickodonnell's Avatar
    Join Date
    Sep 2005
    Location
    United States
    Posts
    33

    Thumbs up

    Quote Originally Posted by flicka
    I can answer that one !
    you're doing:
    Code:
    cout <<
    when it's
    Code:
    cout<<
    Hope it helps
    I know this problem's fixed, but just to clerify things, flicka, whitespace in your coding doesn't matter. You could have used
    Code:
    cout                     <<
    
          "Text Here"                              <<
    endl;
    And it would have had the same effect.
    ------------------------------------------------
    cout<<"Hello World!\n";
    ------------------------------------------------

  5. #5
    Registered User
    Join Date
    Oct 2005
    Posts
    7
    whoa, thats cool

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Passing function pointer using message queues
    By LxRz in forum Linux Programming
    Replies: 4
    Last Post: 05-05-2008, 10:41 AM
  2. COM message pump
    By George2 in forum Windows Programming
    Replies: 2
    Last Post: 03-29-2008, 02:52 AM
  3. Trouble with DMA Segmentation Faults
    By firestorm717 in forum C Programming
    Replies: 2
    Last Post: 05-07-2006, 09:20 PM
  4. Making a script language?
    By Blackroot in forum Game Programming
    Replies: 10
    Last Post: 02-16-2006, 01:22 AM
  5. Very simple question, problem in my Code.
    By Vber in forum C Programming
    Replies: 7
    Last Post: 11-16-2002, 02:57 PM

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