討論串[問題] scanf()格式字串多打\n卻要再輸入一次
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
printf("請輸入您的生日\n幾月\n");. scanf("%d\n", &a);. printf("幾日\n");. scanf("%d\n", &b);. user input: [2\n2\n29\n]. program: [2\n2\n29\n]. output: [請輸入您的生日\n
(還有3252個字)
內容預覽:
想請教一下板上的高手. 小弟最近剛學程式. 知道scanf的基本用法. 但打程式的時候手很賤的多加了一個\n試試看. 變成下面這樣. #include<stdio.h>. #include<stdlib.h>. int main(void). {. int a,b;. printf("請輸入您的生日
(還有197個字)
首頁
上一頁
1
下一頁
尾頁