关于字符串存储
关于字符串存储我需要完成"输入一个字符串后,把他们每一个字符保存到一个向量或数组中,字符串中要包含空格"怎么办,谢谢!!!
cout<<name<<" ";cout<<num<<" ";cout<<score<<endl;
}
void main()
{
student stu1,stu2,stu3;
student*p;
p=&stu1;
stu1.setdata();
stu2.setdata();
stu3.setdata();
cout<<"name: ";cout<<"num: ";cout<<"score: "<<endl;
stu1.show();
stu2.show();
stu3.show();
}