上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 54 下一页
摘要: 源程序: #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)
摘要: 源程序: #include <iostream> #include <cstring> using namespace std; int main() { string s1 = "c++语言"; string s2 = "程序设计"; string s3 = s1 + s2; string s4; 阅读全文
posted @ 2019-12-02 19:45 bobo哥 阅读(129) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream> #include <string> using namespace std; int main() { string str; if (str.empty()) cout << "str is NULL." << ",length=" << str. 阅读全文
posted @ 2019-12-02 19:17 bobo哥 阅读(124) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream> #include <string> using namespace std; int main() { string s1, s2; s1 = "c++程序"; s2 = s1; string s3; cout << "s3=" << s3 << e 阅读全文
posted @ 2019-12-02 18:54 bobo哥 阅读(159) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream> #define N 5 using namespace std; class Insert { private: int a[N]; public: Insert(int m[], int n) //构造函数初始化私有变量数组 { for (int 阅读全文
posted @ 2019-12-02 18:40 bobo哥 阅读(229) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream> #define N 5 using namespace std; void insert_sort(int a[], int n) //直接插入排序 { int i, j, temp; for (i = 1; i < n; i++) { temp = 阅读全文
posted @ 2019-12-02 16:28 bobo哥 阅读(139) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream> using namespace std; int bigger(int x, int y) { if (x > y) return x; else return y; } int bigger(float x, float y) { if (x > 阅读全文
posted @ 2019-12-02 15:30 bobo哥 阅读(164) 评论(0) 推荐(0)
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 54 下一页