Writeaprogramtoread10namefromandinputfile,eachnamehas5grades(fromanotherinputfile)nowdisplayandprintthemtoanoutputfile.Sendinputfiles,sourcecode,andoutputfileforgrading写个程序从一个input文件里读名字(1
now display and print them to an output file.Send input files,source code,and output file for grading
写个程序从一个input文件里读名字(10)个,每个名字有5个成绩(来自另一分input 文件),显示他们并print在output的文件里
老兄,这个要根据你两个input文件的格式来读取信息.然后组织在一起.
如果不知道格式,什么事情也做不了.
你得告诉我,格式是什么样子的. 下面就是简单的一个类.
实现的话,必须要根据两个input的格式,以及你期望的output的格式.
struct student{
string _name;
// one student has five grade.
float _grade[5];
};
class StudentManager
{
public:
// get info from the input file.
void ReadNameFromFile( const char *filename);
// get grades from the input file.
void ReadGradesFromFile( const char *filename);
// Out put the infomation.
void OutPutInfo( const char* outputFileName );
private:
// only 10 studtent
student m_student10];
};
爸爸给儿子出了一道算式题,但是这个算式题很奇怪,里面一个数字也没有,只有8个"□"A=(□+□+□ 2020-04-08 …
在WORD里怎么在一个圈里打3个字~列如“A~9”怎么才能把“A~9”打在一个圈里,怎么我打总是最 2020-04-27 …
线性代数设A是4阶矩阵,A*为A的伴随矩阵,若齐次方程Ax=0基础解系里有一个解向量,则A*x=0 2020-05-13 …
当细菌繁殖时一个细菌分裂成两个某种细菌A每15分钟分裂一次如果一个器皿里有100个A细菌那么一个小 2020-05-13 …
当细菌繁殖时,一个细菌分裂成两个,某种细菌A每15分钟分裂一次,如果一小时器皿里有100个A细菌, 2020-05-13 …
有8个篮子,平均每个篮子里有10个桃.如果任意选一篮,那么里面的桃子()有8个篮子,平均每个篮子里 2020-05-21 …
一个关于公务员数学题的问题?19、甲、乙、丙三辆车的时速分别为60公里、50公里和40公里,甲从A 2020-06-12 …
这里有5个杯子,其中4个都有毒,其中一个没有,你认为是哪一种?A.刚挤出来的牛奶B.一杯白开水C. 2020-06-16 …
警察局里有5名嫌疑犯他们分别做了如下口供:A说:这里有1个人说谎。B说:这里有2个人说谎。C说:这 2020-06-17 …
一个小学一年二期的数学题:两个人投球,丁丁说他投了50分,佳明说他的最后一个球扔进了10分框里,图 2020-06-24 …