[問題] 輸出的問題 找不出 麻煩了 !!
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
devc++
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
問題(Question):
就是我要輸入跟下一個輸出卡在一起
餵入的資料(Input):
預期的正確結果(Expected Output):
分開
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版)
#include <iostream>
using namespace std;
int main(){
int Pid[7],age,num,Pdata,Did[5],rdata;
char name[14];
//file.open("patients.txt",ios::out|ios::app);
cout<<"PatientID ==>";
cin>>Pid[7];
cout<<"PatientName ==>";
cin>>name[14];
cout<<"PatientAge ==>";
cin>>age;
cout<<"PatientNumber ==>";
cin>>num;
cout<<"PatientDate ==>";
cin>>Pdata;
cout<<"DoctorID ==>";
cin>>Did[5];
cout<<"ReservedDate ==>";
cin>>rdata;
system("pause");
return 0;
}
補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.42.203.104
推
12/21 22:55, , 1F
12/21 22:55, 1F
→
12/21 23:00, , 2F
12/21 23:00, 2F
推
12/21 23:07, , 3F
12/21 23:07, 3F
推
12/22 00:02, , 4F
12/22 00:02, 4F
推
12/22 00:06, , 5F
12/22 00:06, 5F
→
12/22 00:54, , 6F
12/22 00:54, 6F
推
12/22 01:33, , 7F
12/22 01:33, 7F
→
12/22 03:34, , 8F
12/22 03:34, 8F
→
12/22 03:35, , 9F
12/22 03:35, 9F