Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在下面的代码中,我的角色没有存储在角色中......谁能告诉我出了什么问题?:
char z; printf("A or B ?\n "); scanf("%c",&z); printf("%c",z);
在想要的字符之前读取另一个虚拟字符:
char dumy; scanf("%c%c",&dumy,&z);