- 博客(8)
- 收藏
- 关注
原创 重置运算符
#include using namespace std;class pddate{public:void printf(int a){cout}void printf(double a){cout}void printf(char *a){cout}};int main(void){pddate kk;k
2017-08-15 14:25:31 708
原创 派生类继承基类
#include using namespace std;class shop{public:void setwidth(int i){width = i;}void setheight(int h){height = h;}protected:int width;int height;};class shapp{
2017-08-10 14:52:56 980
原创 基类 派生类 算一个数乘积
#include using namespace std;class shop{public:void setwidth(int i){width = i;}void setheight(int h){height = h;}protected:int width;int height;};class shap : pub
2017-08-10 11:14:39 311
原创 编译成功
#include using namespace std;//void ShowStuctMessage(struct PersonInfo pInfo);struct PersonInfo{int index;char* name;short age;};void ShowStuctMessage(PersonInfo pInfo){coutcou
2017-08-03 16:09:44 388
原创 编译失败
#include using namespace std;struct PersonInfo{int index;char name[30];short age;};void ShowStuctMessage(struct PersonInfo Mypinfo){coutcoutcout}void main()PersonInfo pIn
2017-08-03 14:35:30 443 1
原创 *打印菱形
#include using namespace std;void xin(){int i,j,k; for (i=1;i { for (j=1; j cout for ( k=1; k cout for (j=1; j cout cout } for(i=9;i>=1;i--) { f
2017-07-26 23:38:57 256
原创 输入一个数判断是星期几
#include using namespace std;void main(){int numbe;cin>>numbe;switch(numbe){case 1:coutbreak;case 2:coutbreak;case 3:coutbreak;case 4:coutbreak;case 5:coutb
2017-07-25 10:18:03 1495
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人