討論串[作業] 王勝德的作業
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
while (cin >> x). {. switch(x) {. case 0:. 略. break;. case 1:. char s[m]={"this is a pen"};. tokenize(s);. break;. }. }. case 0的時候都沒問題. 可是case 1的時候一to
(還有110個字)
內容預覽:
謝謝好心的學長,再問一個. 除了用cin.getline()之外. 有辦法把一行字(中間有空白)存入字串嗎?. 因為我在上一篇的程式裡. switch. case't':. cout<<"Input:";. cin.getline(string,100);. (以下省略). 去run的時候,我連輸入
(還有51個字)
內容預覽:
Use both a switch and a while statement to control the program execution, such. that the user can choose several consecutive computations provided by
(還有427個字)
首頁
上一頁
1
下一頁
尾頁