View Single Post
  #1 (permalink)  
Old December 16th, 2006, 04:12 AM
mastrgamr mastrgamr is offline
Authorized User
 
Join Date: Oct 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mastrgamr
Default meaning of a warning

is there a place anywere that i can lookup wat each warning for a C++ means?(if that list isnt too big lol)

because i got a warning while compiling this:
----------------------------------------------------------------------
#include <iostream.h>

using namespace std;
int main()
{
    int age;
    cout<<"imma execute a program but first u have to be a certain age!\n";
    cout<<"enter ur age here: ";
    cin>> age;
    cin.ignore();
    if (age == 15) {
        cout<<"GOOD choice!\n";
        }
    else {
        cout<<"OOPS WRONG AGE!!!\n";
        }
cin.get();
return 0;

    int num;
    cout<<"Enterith anyith #(ith lol): ";
    cin>> num;
    cin.ignore();
    cout<<"U enteredith: "<< num<<"\n";
    cin.get();
}
----------------------------------------------------------------------
im not completley done i was just practicin my newbie skill. :D im tryna fix this code so wen i do enter the right age the program wont close how?

__________________
-Stuart Smith
Reply With Quote