上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 54 下一页
摘要: 源程序: #include <stdio.h>#include <stdlib.h>#include <malloc.h>#include <string.h> #define MAX 100#define isLetter(a) ((((a)>='a')&&((a)<='z')) || (((a) 阅读全文
posted @ 2019-12-04 11:21 bobo哥 阅读(937) 评论(0) 推荐(0)
摘要: 源程序: /*无向带权图的邻接矩阵表示法*/#include <stdio.h>#define vnum 20const int MAX_INT=0;typedef struct gp{ char vexs[vnum]; /*顶点信息*/ int arcs[vnum][vnum]; /*邻接矩阵*/ 阅读全文
posted @ 2019-12-04 10:39 bobo哥 阅读(3243) 评论(0) 推荐(0)
摘要: 源程序: #include <stdio.h>#include <stdlib.h> const int vnum=20; typedef struct gp{ char vexs[vnum]; int arcs[vnum][vnum]; int vexnum,arcnum;}Graph; //输入 阅读全文
posted @ 2019-12-04 10:05 bobo哥 阅读(1095) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream> using namespace std; template <class T> void f(T a[], int n) { T t = 0; for (int i = 0; i < n / 2; i++) { t = a[i]; a[i] = a[ 阅读全文
posted @ 2019-12-03 16:12 bobo哥 阅读(251) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream> using namespace std; class ctest { private: int x; public: ctest(const int x) { this->x = x; } int getx() const //const必须写在函数 阅读全文
posted @ 2019-12-03 14:33 bobo哥 阅读(782) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream> #include <string> using namespace std; class CEmployee { private: string szName; int salary; public: void setName(string); st 阅读全文
posted @ 2019-12-03 11:15 bobo哥 阅读(119) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream> using namespace std; class Box { public: double length; void setWidth(double wid); double getWidth(); private: double width; 阅读全文
posted @ 2019-12-03 11:01 bobo哥 阅读(147) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream> #include <string> using namespace std; class myDate { public: myDate(); myDate(int, int, int); void setDate(int, int, int); v 阅读全文
posted @ 2019-12-03 10:36 bobo哥 阅读(216) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream> #include <string> using namespace std; class myDate { public: myDate(); myDate(int, int, int); void setDate(int, int, int); v 阅读全文
posted @ 2019-12-03 10:26 bobo哥 阅读(172) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream> #include <string> using namespace std; class myDate { public: myDate(); myDate(int, int, int); void setDate(int, int, int); v 阅读全文
posted @ 2019-12-03 10:21 bobo哥 阅读(165) 评论(0) 推荐(0)
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 54 下一页