摘要:
源程序: #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)
摘要:
源程序: #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:04
bobo哥
阅读(140)
评论(0)
推荐(0)
摘要:
源程序: #include <iostream> using namespace std; class myDate { public: myDate(); myDate(int,int,int); void setDate(int,int,int); void setDate(myDate); m 阅读全文
posted @ 2019-12-03 09:36
bobo哥
阅读(152)
评论(0)
推荐(0)
摘要:
源程序: #include <iostream> #include <string> using namespace std; int main() { int n,i,length=0; cout << "输入几个字符串:"; cin >> n; string *p; string *A = ne 阅读全文
posted @ 2019-12-03 09:05
bobo哥
阅读(175)
评论(0)
推荐(0)
摘要:
源程序: #include <iostream> #include <string> using namespace std; int main() { int n,i; cout << "输入几个字符串:"; cin >> n; string *p; string *A = new string[ 阅读全文
posted @ 2019-12-03 08:46
bobo哥
阅读(135)
评论(0)
推荐(0)

浙公网安备 33010602011771号