error

This is a discussion on error within the C++ Programming forums, part of the General Programming Boards category; the highlighted part is where i think i went wrong... what did i do wrong here? Code: #include <iostream> using ...

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    6

    error

    the highlighted part is where i think i went wrong...
    what did i do wrong here?
    Code:
    #include <iostream>
    
    using namespace std;
    
    int main()
    {
      for ( int x = 0; x < 10; x++ ) {
      cout<< x <<end1;
      }
      cin.get();
    }

  2. #2
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532
    It's not end1 it's endl. With a lowercase L, not the number 1.
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

  3. #3
    Registered User
    Join Date
    Aug 2005
    Posts
    6
    lol oops... thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 09:15 PM
  3. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 09:33 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 12:10 AM

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