看板 C_and_CPP 關於我們 聯絡資訊
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) C++ 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) 問題(Question): 請問各位高手該怎麼把第一行的第二個*消掉 我只是個剛學程式的大一魯蛇... 餵入的資料(Input): 預期的正確結果(Expected Output): * * * * * * * ********* 錯誤結果(Wrong Output): ** * * * * * * ********* 程式碼(Code):(請善用置底文網頁, 記得排版) http://codepad.org/aKD8Hy0F 補充說明(Supplement): -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 27.243.5.157 ※ 文章網址: http://www.ptt.cc/bbs/C_and_CPP/M.1416455396.A.280.html
nctucch17170: 再加一個if判斷是不是第一行就好了阿= = 11/20 11:54
Caesar08: 在17行下面加一個if(row==1){ 11/20 11:56
Caesar08: printf("\n");continue;} 11/20 11:57
allyusd: http://codepad.org/pkRvR638 11/20 11:57
Caesar08: 樓上的比較漂亮 11/20 11:58
brilliantl: 對欸沒有想到~謝謝各位高手 11/20 12:17