Joke Collection Website - Public benefit messages - Regarding the output of backspace symbols, why can't I output \b this program? How should I enter it?
Regarding the output of backspace symbols, why can't I output \b this program? How should I enter it?
int c;
This is an integer type. It is wrong for you to compare integer with character.
The solution is changed to char c (0);
The second question:
You entered \ tThere are two characters in the keyboard buffer, one is \ and the other is t, so the first loop encounters \
At this time, two \ \ will be printed. The word \ "will appear on the screen. The next loop will encounter T. Obviously, if there is no match, T will be output directly.
So the whole result is \\t ". Is this what you saw?
- Related articles
- How to add new members to the mobile home network?
- Anhui Jinnong registered mobile banking on his mobile phone, showing that he could not register without SMS.
- Modern novels in which the heroine can see ghosts.
- What should I do if the total personal payment amount in the Guangdong Provincial Social Security Bureau text message is wrong?
- Will it show missed calls after shutdown? Can I display missed calls after the phone is turned off?
- Why should the SMS sent by Samsung S5 Telecom 10000 be automatically replied?
- Birthday wishes: happiness will last forever, and sweetness will follow.
- What funny things have happened to the wonderful students in the classroom?
- Wechat shows that you can't send a message that you have quit in group chat.
- Announcement of Huaxia Bank on Reservation and Exchange of Commemorative Coins for the New Year in 2023