#include <iostream>
#include <string>
#include <ctime>
using namespace std;
//学生的结构体定义
struct Student {
string name;
int score;
};
//老师的结构体定义
struct Teacher {
string tName;
struct Student sArray[5];
};
// 给老师和学生赋值的函数
void allocateSpace(struct Teacher tArray[], int len)
{
string nameSeed = "ABCDE";
// 给老师赋值
结构体练习案例1(随机数种子的运用)
最新推荐文章于 2023-11-14 23:20:47 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)