Beginner's Tinkering
Can anyone tell me what's wrong with this string of code? I have been fooling around with what I have learned so far (very little) and have gotten stuck using the "if" statement. #include <iostream> using namespace std; int main() { int age; int born; int sex; cout << "how old are you? "; cin >> age; cout << "\nwhen were you born? "; cin >> born; cout << "\nare you a man or a woman? "; cin >> sex; if (sex = "male") { born + 76; } else { born + 81; } cout << "\nYou will probably die in the year AD." << born << "unless you're the next Rick James, bitch" << endl; return 0; } There are probably a ton of "issues" with the above but since I don't know proper coding etiquette yet, so bear with me.