- 12,504
- Posts
- 21
- Years
- Seen Mar 13, 2022
I'm not exactlysure if it goes here, but I'm sure PC's friendly mods will move it if I've erred....Anyway, on to the problem:
Lately I've been working on C++ programming, but my first program I've typed up doesn't work for some reason....=/ Here it is:
It, by the way, is a very diluted version of a cootie catcher. Pic a number, get a smart alec response... :nervous:
Lately I've been working on C++ programming, but my first program I've typed up doesn't work for some reason....=/ Here it is:
My Program said:#include <iostream>
using namespace std;
int main ()
{
char letter;
cout << "Enter any 1-4 number: ";
cin >> number
switch(number)
{
case '1' : cout << "YOU'RE NUMBER 1! [Not that that means anything] =P\n"; break;
case '2' : cout << "Who'd pick #2?? What were you thinking?!?!\n"; break;
case '3' : cout << "You're smart. ^_- #3's awesome!\n"; break;
case '4' : cout << "Donald Trump says, \"You're fired.\"\n"; break;
default :cout << "Wow you're dumb! I said 1-4!\n"; break;
}
return 0;
}
It, by the way, is a very diluted version of a cootie catcher. Pic a number, get a smart alec response... :nervous: