?? 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();/*輸入函數(shù)*/
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()
{
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -