📄 cpp1.txt
字号:
#include<iostream>
#include<string>
class student{
public:
student(char *name1,char *numbel1,float score1);
struct person{
char name[20];
char xuehao[20];
float fenshu;
}
void shuru();/*输入函数*/
void show();
void show_count_sum_ave();
private:
char *name;
char *numbel;
float score;
int count;
float sum;
float ave;
};
student::student(char *name1,char *numbel1,float score1)
{
name=new char[strlen(name1)+1];
strcpy(name,name1);
numbel=new char[strlen(numbel1)+1];
strcpy(numbel,numbel1);
score=score1;
++count;
sum+=score;
ave=sum/count;
}
void student::shuru()
{
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -