

CodePudding user response:
Use the scanf, scanf_s input character or string always has some problemsCodePudding user response:
The scanf scanf_s best, don't use "a=% d, b=% d", this way,Second scanf_s input character or string must be followed by length
Scanf_s (" % % c, c, & amp; C1, 1, & amp; C2, 1)
The best way to input the char and the
Scanf_s (" % % c, c, & amp; C1, 1, & amp; In front of the c2, 1) with getchar () eat inside the cache enter