Quote: from Roy at 10:40 pm on Aug. 30, 2006
It's a pun! Kinda! Ok, I'm bored. Here's the deal. I'm going to give C++ source code with a few mistakes in it. If you correct it, you get a secret prize.
If you can tell me what the program will do after it's compiled & run, you'll get an ever better, secreter prize!
| Code: |
| include <iostream> using namespace std; int main() { int thisisanumber; count<<"Please enter a number: "; cin>> thisisanumber; cin.ignore(); cout<<"You entered: "<< thisisanumber <<"\n'; cin.get(); } |

1) include needs a # in front of it
2) "count" should be "cout"
3) I don't think the cin.ignore(); should be there at all
4) I think the cin.get() should replace the cin.ignore()
-------
Religion: Apathetic agnostic
Political Affiliation: Independent