Home > Back-end >  A problem
A problem

Time:09-26

#include
Int main () {
Int a, b;
A=getchar ();
B=6;
While (getchar ()!=b)
Printf (" % d \ n ", a);
Printf (" % d \ n ", b)
return 0;
}
Excuse me:
Under what circumstances determine type getchar ()!=b is false, terminate the while loop,

CodePudding user response:

You check with ASCII is 6 characters?
https://wk.baidu.com/view/07394e1b52d380eb62946d59? PCF=2
This is display character, the input to a particular way

CodePudding user response:

reference 1st floor qybao response:
you check ASCII is 6 characters?
https://wk.baidu.com/view/07394e1b52d380eb62946d59? PCF=2
This is display character, the input to a particular way of

Hello, could you explain what kind of method is to use the input

CodePudding user response:

You can try to escape 8 hexadecimal input try
The input
006
\Try
Then why you don't want to use a undisplayable characters as input end judgment?

CodePudding user response:

The b value in a good, why must the special characters

CodePudding user response:

It was interesting so I want to look at

CodePudding user response:

reference 4 floor N - N - N response:
the b value in a good, why must be special characters

It was interesting so I want to look at

CodePudding user response:

refer to 6th floor weixin_44930231 response:
Quote: refer to 4th floor N - N - N response:
the b value in a good, why must be special characters

It was interesting so I want to know about the
special characters as input, or like upstairs/006 try that

CodePudding user response:

refer to 7th floor N - N - N response:
Quote: refer to the sixth floor weixin_44930231 response:

Quote: refer to 4th floor N - N - N response:
the b value in a good, why must be special characters

Quite interesting so I want to know about the
special characters as input, or like upstairs/006 that try

No, still judged to be true.

CodePudding user response:

refer to the eighth floor weixin_44930231 response:
Quote: refer to 7th floor N - N - N response:
Quote: refer to the sixth floor weixin_44930231 response:

Quote: refer to 4th floor N - N - N response:
the b value in a good, why must be special characters

Quite interesting so I want to know about the
special characters as input, or like upstairs/006 that try

No, still judged to be true.
what can be in baidu search asciii code 6 representative, and then copied "" (this is) I find this useful

CodePudding user response:

Hello, getchar ()!=b conditions in getchar ()==b when the sentence is false, because b is ASCII is 6 characters, so the getchar () to get the ASCII is 6 characters is the loop terminates,

CodePudding user response:

The
references to the tenth floor big home entertainment cpy reply:
hello, getchar ()!=b conditions in getchar ()==b when the sentence is false, because b is ASCII is 6 characters, so the getchar () to get the ASCII is 6 characters is the loop terminates,

But he didn't end has been executed
Input in what way can let he judged to be fake?

CodePudding user response:

The
references to the tenth floor big home entertainment cpy reply:
hello, getchar ()!=b conditions in getchar ()==b when the sentence is false, because b is ASCII is 6 characters, so the getchar () to get the ASCII is 6 characters is the loop terminates,

But he didn't end has been executed
Input in what way can let he judged to be fake?

CodePudding user response:

The
references to the tenth floor big home entertainment cpy reply:
hello, getchar ()!=b conditions in getchar ()==b when the sentence is false, because b is ASCII is 6 characters, so the getchar () to get the ASCII is 6 characters is the loop terminates,

But he didn't end has been executed
Input in what way can let he judged to be fake?
  • Related