Thread: whats wrong here

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    26

    whats wrong here

    Code:
    #include <iostream.h>
    #include <stdlib.h>
    
    int main()
    
    {
    
    	int age;
    
    	cout<<"Please enter your age: ";
    
    	cin>>age;
    
    	if(age<=50)
    	{
    		
    	cout<<"Your not that old"; <<endl;
    
    	}
    	else if(age>51)
    	
    	{
    		cout<<"Man your old"; <<endl;
    	}
    
    	return 0; system("pause");
    
    }
    i get an error for the "endl" part of the code. whats wrong??
    Last edited by CobraCC; 04-19-2003 at 01:17 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 07-15-2004, 03:30 PM
  2. Debugging-Looking in the wrong places
    By JaWiB in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 11-03-2003, 10:50 PM
  3. Confused: What is wrong with void??
    By Machewy in forum C++ Programming
    Replies: 19
    Last Post: 04-15-2003, 12:40 PM
  4. God
    By datainjector in forum A Brief History of Cprogramming.com
    Replies: 746
    Last Post: 12-22-2002, 12:01 PM
  5. Whats wrong?
    By Unregistered in forum C Programming
    Replies: 6
    Last Post: 07-14-2002, 01:04 PM