看板 NTUEE107HW 關於我們 聯絡資訊
※ 引述《smarttb1 (好空虛)》之銘言: #include <iostream> #include <cstring> using namespace std; int main() { cout << "input a 5-digital number please" << endl; string num; cin >> num; cout << "your number is "<< num << endl; cout << "Seperated is "<<num[0]<<" "<<num[1]<<" "<<num[2]<<" "; cout <<num[3]<<" "<<num[4]<<endl; system("pause"); return 0; } 這樣試看看行不行?? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.239.158
timrau:為什麼大家都愛用system("pause")..... 推 140.112.18.116 10/01
-- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.166.93.7