在C++中用scanf讀入字串要用格式控制符“%s”,如下程式碼:# include <stdio.h>void main(){char s[1000];scanf("%s",&s); //輸入字串。printf("%s\n" ...
確定! 回上一頁