Tell me what do you think? How could i improve on it? constructive criticism is welcome
#include <iostream>
usingnamespace std;
int main()
{
string hey;
string wyd;
string response;
string day;
string why;
string ok;
string name;
string sex;
string info;
int age;
cout << "Are you a boy or girl?" << endl;
cin >> sex;
if(sex=="girl"){
cout << "Periods are such a pain" << endl;
}
else {cout<< "It's nice not having periods isnt it?" << endl;
}
cout << "How old are you?" << endl;
cin >> age;
if (age < 50) {
cout << "Youre young" << endl;
}
else {
cout << "Youre old" << endl;
}
cout << "So whats your name?" << endl;
cin >> name;
cout << "thats a nice name" << endl;
cout << "So wyd?" << endl;
cin >> wyd;
cout << "Oh thats cool. i'm just talking to you being bored" << endl;
cin >> response;
cout << "So how is your day?" << endl;
cin >> day;
cout << "Why is that? My day is good" << endl;
cin >> why;
cout << "tell me about yourself. I wanna get to know " << name << endl;
cin >> info;
return 0;
}
1: sex is what you do, gender is who you are.
2: Use string vectors for input and prompting.
3: cin is incorrect for most entries, getline is what should be used.
You might think kemort's answer is harsh, but really, what you are asking is "I'm doing absolutely nothing", how well am I doing. Well, so long as you don't move or blink your eyes, you'd be doing pretty good.
Qualified opinions are usually predicated upon understanding the objective.