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);