【发布时间】:2010-11-24 22:09:15
【问题描述】:
如何在函数中对 char firstName 进行排序,并且名称已经从文本文件中读取,并且也可以使用外部库 所有学生的姓名都在一个文本文件中提供,该文件被读入学生记录数组
struct student{
char*lastName; /*name of the student*/
char*firstName;
int age; /*age of the student*/
float grade[3];
}
【问题讨论】:
-
您可以通过选择代码并按 CTRL+K 来格式化代码。使用预览。
-
另外,您的问题没有提供足够的信息。你有什么样的数组/集合?这个结构没有告诉我们任何事情。