各位大神帮帮忙,为什么while循环不了
#include<iostream>using namespace std;
struct student
{char name[30];
int num;
int score;
};
int main()
{student stu;
int k;
cout<<"输入学生的相关信息\n"<<endl;
cin>>k;
while (k>0);
{cout<<"学号"<<endl;
cin>>stu.num;
cout<<"姓名"<<endl;
cin>>stu.name;
cout<<"成绩"<<endl;
cin>>stu.score;
cin>>k;}
}