摘要: #include <stdio.h>#include <stdlib.h>#include <string.h>void StringCopy(char* strSource, char* strDestination){ int i = 0; while(*strSource!='\0') { * 阅读全文
posted @ 2020-12-15 22:23 bobo哥 阅读(637) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream>using namespace std; class CCount //定义类CCount{public: CCount(void); //构造函数 ~CCount(void); //析构函数 int GetCount(void); //成员函数 vo 阅读全文
posted @ 2020-12-15 21:19 bobo哥 阅读(192) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream>using namespace std; //定义类的模板class A //类的定义{private: int x,y; const int z;public: //A(){}; //缺省的构造函数 A(int a,int b,int c):x(a) 阅读全文
posted @ 2020-12-15 21:06 bobo哥 阅读(121) 评论(0) 推荐(0)
摘要: 源程序: #include <stdio.h>#include <string.h>#include <malloc.h> char *GetMemory(int num){ char *p=(char *)malloc(sizeof(char)*num); return p;} void main 阅读全文
posted @ 2020-12-15 20:48 bobo哥 阅读(117) 评论(0) 推荐(0)
摘要: 源程序: #include <stdio.h>#include <malloc.h> struct Student //结构体{ int sid; //学号 int age; //年龄}; struct Student *CreateStudent(){ struct Student *stu=(s 阅读全文
posted @ 2020-12-15 20:40 bobo哥 阅读(219) 评论(0) 推荐(0)
摘要: 源程序: #include <stdio.h>#include <stdlib.h>#include <string.h>void StringCopy(char *strSource,char *strDestination){ int i; for(i=0;strSource[i]!='\0'; 阅读全文
posted @ 2020-12-15 19:43 bobo哥 阅读(150) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream>using namespace std; class Test{private: int Width,Height;public: //以下是函数 void SetValue(int iWidth,int iHeight) { Width=iWidth 阅读全文
posted @ 2020-12-15 19:11 bobo哥 阅读(113) 评论(0) 推荐(0)