'C' can use printf("%d",n); to show integer like XXXX
↑↑↑↑↑會WA!
要輸入'C' can use printf("%d",n); to show integer like XXXX
注意引號!
'C'和其他文字要分開放~
(分清楚單、雙引號哦~~)
已修正
才不用分開放
#include <iostream> using namespace std; int main() { int a; while(cin >> a) { cout << "\'C\' can use printf(\"%d\",n); to show integer like " << a << endl; } }