Re: C++ not working properly
nor will adding getchar() since thats not a hello world program.
the correct syntax for using get char would be
cout << "Hello World!";
x = getchar();
since it scans the keyboard loading the key pressed into variable, (so marks off for not using the function properly,
besides getchar is not needed, as I said in the previous post, the program acualy works perfectly, (it runs) and it finishes. without error...
getchar() or system(pause) simply arn't needed.
marks off for using the function because he simply doesn't need it!
besides which, who said anything about a degree?
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."