代码搜索结果

找到约 10,000 项符合 9 的代码

9_3.h

//9-3.h #ifndef ARRAY_CLASS #define ARRAY_CLASS #include #include using namespace std; #ifndef NULL const int NULL = 0; #endif // NULL //错误类型集合,共有三种类型的错误:数组大小错误、内存

9_5.h

//9_5.h #ifndef NODE_CLASS #define NODE_CLASS //类声明部分 template class Node { private: Node *next; //指向后继结点的指针 public: T data; //数据域 Node (con

9_1.cpp

//9_1.cpp #include using namespace std; template< class T > //声明函数模板 void outputArray( const T *P_array, const int count ) //定义函数体 { for ( int i = 0; i < count; i++ ) cout

9_11.h

//9_11.h #ifndef ARRAY_BASED_SORTING_FUNCTIONS #define ARRAY_BASED_SORTING_FUNCTIONS //用直接插入排序法对数组A中的元素进行升序排列 template void InsertionSort(T A[], int n) { int i, j; T temp;

9_3.h

//9-3.h #ifndef ARRAY_CLASS #define ARRAY_CLASS #include #include #ifndef NULL const int NULL = 0; #endif // NULL //错误类型集合,共有三种类型的错误:数组大小错误、内存分配错误和下标越界 enum ErrorT

9_16.cpp

//9_16.cpp #include #include #include"employee.h" #include "9_3.h" //包含数组类模板头文件 using namespace std; void main() { manager m1; technician t1; salesman s1; salesmana

9_12.h

//9_12.h #ifndef ARRAY_BASED_SORTING_FUNCTIONS #define ARRAY_BASED_SORTING_FUNCTIONS // 辅助函数:交换x和y的值 template void Swap (T &x, T &y) { T temp; temp = x; x = y; y

7_9.cpp

//7_9.cpp 文件三,主函数 #include "linequ.h" //类声明头文件 void main() //主函数 { double a[]= //方程系数矩阵 { 0.2368,0.2471,0.2568,1.2671, //第一行 0.1968,0.2071,1.2168,0.2271, //第二行 0.1581,1.1675,0.1768

6_9.cpp

//6_9.cpp #include using namespace std; void main() { int array2[2][3]={{11,12,13},{21,22,23}}; //声明二维int型数组 for(int i=0;i

5_9.cpp

//5_9.cpp #include using namespace std; class A { public: A(int i); void print(); const int& r; private: const int a; static const int b; //静态常数据成员 }; const int A::b=10;