当前位置: 技术问答>linux和unix
编译时报错了,请帮忙看一下吧
来源: 互联网 发布时间:2016-05-24
本文导语: [root@localhost /root/program/line]$cat test.cpp #include using namespace std; struct STU{ char name[20]; int score; char sex; }; typedef STU employtype; int main() { employtype num1; num1.name[20]={"china"}; num1.score=100; num1.sex='B'; cout
[root@localhost /root/program/line]$cat test.cpp
#include
using namespace std;
struct STU{
char name[20];
int score;
char sex;
};
typedef STU employtype;
int main()
{
employtype num1;
num1.name[20]={"china"};
num1.score=100;
num1.sex='B';
cout
#include
using namespace std;
struct STU{
char name[20];
int score;
char sex;
};
typedef STU employtype;
int main()
{
employtype num1;
num1.name[20]={"china"};
num1.score=100;
num1.sex='B';
cout