#include
using namespace std;
int main()
{
long number;
char name[50];
int class_;
cout << "请依次输入学号、姓名、班级(例子:000007 张三 3),以空格分隔:\n";
cin >> number >> name >> class_;
cout << "姓名:" << name << endl << "学号:" << number << endl << "班级:" << class_ << endl;
return 0;
}
#include
#include
using namespace std;
int main()
{
string a,b,c;
while(true)
{
cout<<"请输入姓名:";
cin>>a;
cout<<"请输入学号:";
cin>>b;
cout<<"请输入班级:";
cin>>c;
cout<}
return 0;
}