#include <iostream>
usingnamespace std
int main()
{
cout << "Enter your name." << endl;
int name;
cin >> name << endl;
cout << "How old are you?" << endl;
int age;
cin >> age;
if(age >= 18) {
cout << "You are a" << age << "year old man named" << name << "correct?" << endl;
}else{
cout << "You are a" << age << "year old boy named" << name << "correct? Y/N." << endl;
}
int Y = 51;
int N = 50;
cin >> answer;
if(answer == Y){
cout << "I'll think of something to put here later." << endl;
}else{
for(int x = 1; x == 1)
}
}
There are quite a lot of mistakes in this code..
* you cant store more than 1 digit in int.. so you need to use string for the name
*and use char for Y/N not int
read more about strings and type char.. and as he said get an IDE. I personally use code blocks
but there are many other good ones.