65,211
社区成员
发帖
与我相关
我的任务
分享#include "stdafx.h"
#include <iostream>
#include <assert.h>
using namespace std;
#include <iostream>
using namespace std;
struct Student
{
int age;
struct Name
{
char firstName[30];
char secondName[30];
};
};
void main()
{
Student stu;
char p[20]="name";
stu.Name.firstName=p;
}
#include "stdafx.h"
#include <iostream>
#include <assert.h>
using namespace std;
#include <iostream>
using namespace std;
struct Student
{
int age;
struct Name
{
char firstName[30];
char secondName[30];
}name;//
};
void main()
{
Student stu;
char p[30]="name";
stu.name.firstName=p;//
}
struct Student
{
int age;
struct Name
{
char firstName[30];
char secondName[30];
}name;
};
void main()
{
Student stu;
char p[20]="name";
stu.name.firstName=p;
}