Home > Back-end >  New inquire!
New inquire!

Time:01-13

Very simple question, but I just don't understand
The code is as follows:
Int wd5 () {
int score;
Cin & gt;> Score;
Cout & lt; return 0;
}

When I enter the letters or special characters, such as a or # these symbols, output corresponding int value is always 0 score, this is why ah

CodePudding user response:

In the soft in the former, & gt;> Function will score the initial 0, because in the digital computer numerical input is over, thought it returns the value of the score
  • Related