如果要輸入字串的話,有以下幾種方法: char s1[48]; scanf("%s", s1); printf("%s\n", s1); char s2[48]; char *s3 = s2; // 相當於s3 = &s2[0]; ... ... <看更多>
Search
Search
如果要輸入字串的話,有以下幾種方法: char s1[48]; scanf("%s", s1); printf("%s\n", s1); char s2[48]; char *s3 = s2; // 相當於s3 = &s2[0]; ... ... <看更多>
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) Dev-C++ 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) 問題(Question): 我想將txt檔資料 ... ... <看更多>
假如我有一個字元陣列a,char a = ['1','2','3',''4,'5']; ... 這邊你參考參考你的字元跟他的字串用atoi的差別如果你的指標理解還行的話用指標 ... ... <看更多>