#include<iostream.h>struct student{?char name[2];?int score[4];?int average;};void main(){?student stu;?int sum=0;?int i;?cout<<"Enter the name:";?cin>>stu.name;?cout<<"Enter the scores:";?for(i=0;i<4;i++){??cin>>stu.score[i];?}輸完名字后按回車鍵程序直接結束,無法輸入分數(shù),是因為回車符號的影響嗎?
- 2 回答
- 0 關注
- 2172 瀏覽
添加回答
舉報
0/150
提交
取消