#include <stdio.h>
int main(){
int l,m,q,j;
char option;
scanf("%d",&q);
printf("%d\n",q);
for(j=0;j<q;j++){
scanf("%c %d %d",&option,&l,&m);
printf("%c %d %d",option,l,m);
}
return 0;
}
輸出:輸出錯誤的下面的C代碼
3(Input)
3
C 1 4(Input)
0 -374066224C 1 4
什麼是錯的,上面的代碼?它沒有給出預期的輸出。
你是什麼*預期*輸出? – Levon 2012-08-10 13:17:09
**是預期產出?你嘗試調試它嗎?似乎謊言與家庭作業有關的問題... – 2012-08-10 13:17:13
@Levon它不是一個家庭作業,我嘗試使用GDB調試,但沒有用。預期的輸出應該與輸入 – 2012-08-10 13:19:23