Strange problem. PLZ HELP

This is a discussion on Strange problem. PLZ HELP within the C++ Programming forums, part of the General Programming Boards category; I am brand new to programming. I am using the tutorials, and im on the chapter known as Loops. I ...

  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, 10:57 AM
  2. Strange problem
    By G4B3 in forum C Programming
    Replies: 6
    Last Post: 05-14-2008, 03: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, 10:06 PM

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