Home > Back-end >  Everyday ask why not
Everyday ask why not

Time:09-30

Here the first time enter illegal complains, but a formula to calculate mistyped later would not be an error, but the result of the output on a formula I in defau lt and judge whether the second number is equal to 0 two added goto to locate or not, this is why

CodePudding user response:

Do not post code

CodePudding user response:

 
Lf int rt=the scanf (" % % c % lf ", & amp; A, & amp; C., & amp; B);//test under the scanf return value, when 3

CodePudding user response:

refer to the second floor GKatHere response:
 
Lf int rt=the scanf (" % % c % lf ", & amp; A, & amp; C., & amp; B);//test under the scanf return value, when 3


What do you mean ah,,,,

CodePudding user response:

reference swift_ant reply: 3/f
Quote: refer to the second floor GKatHere response:
 
Lf int rt=the scanf (" % % c % lf ", & amp; A, & amp; C., & amp; B);//test under the scanf return value, when 3


What do you mean ah,,,,

Lf int rt=the scanf (" % % c % lf ", & amp; A, & amp; C., & amp; B);//when the input 'a', the return value rt==0; When the input 8-5, the return value for rt==3; Is when the input 'a', actually the scanf is failed,

CodePudding user response:

Do not recommend use goto statements, easy to cause logical confusion
  • Related