Thread: Strange problem. PLZ HELP

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    2

    Strange problem. PLZ HELP

    I am brand new to programming. I am using the tutorials, and im on the chapter known as Loops. I get up to the line of code where it says,

    cout<< x <<end1;

    I write that in, and when I compile, it doesnt work. Then I went to the code printed on the tutorial webpage and copy and paste it in, and it works perfectly. I put it in my program, type exactly what is printed, and then just replace it and it doesnt work. I have no idea whats going on.

  2. #2
    C(++)(#)
    Join Date
    Jul 2004
    Posts
    309
    Post your entire source code.

    Code:
    cout<< x <<end1;
    That "1" should be an "l". It is endl not end1.
    To code is divine

  3. #3
    Registered User
    Join Date
    Jul 2005
    Posts
    2
    OMG! Thankyou...they look almost exactly the same. Thankyou very much.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Strange problem with GETLINE
    By wco5002 in forum C++ Programming
    Replies: 13
    Last Post: 07-07-2008, 09:57 AM
  2. Strange problem
    By G4B3 in forum C Programming
    Replies: 6
    Last Post: 05-14-2008, 02:07 PM
  3. Strange problem with classes in header files
    By samGwilliam in forum C++ Programming
    Replies: 2
    Last Post: 02-29-2008, 04:55 AM
  4. Extremely strange "delete" problem
    By dr_jaymahdi in forum C++ Programming
    Replies: 4
    Last Post: 10-21-2007, 09:06 PM