04 2023 档案

摘要:#include <iostream>using namespace std;class person {public: person() { cout << "person的无参构造函数的调用" << endl; } person(int a) { age = a; cout << "person 阅读全文
posted @ 2023-04-28 23:16 刘梦磊 阅读(8) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> using namespace std; int i = 1; void other() { static int a = 2; static int b; int c = 10; a += 2; i += 32; c += 5; cout << " OTHER 阅读全文
posted @ 2023-04-27 23:07 刘梦磊 阅读(22) 评论(0) 推荐(0) 编辑
摘要:#include <iostream>using namespace std;class person {public: person() { cout << "person的无参构造函数的调用" << endl; } person(int a) { age = a; cout << "person 阅读全文
posted @ 2023-04-26 20:37 刘梦磊 阅读(11) 评论(0) 推荐(0) 编辑
摘要:#include <iostream>using namespace std;class person {public: person() { cout << "person的无参构造函数的调用" << endl; } person(int a) { age = a; cout << "person 阅读全文
posted @ 2023-04-25 23:19 刘梦磊 阅读(27) 评论(0) 推荐(0) 编辑
摘要:#include <iostream>using namespace std;class Person {public: int age; Person() { cout << "默认构造函数调用" << endl; } Person(int a) { age = a; cout << "有参构造函 阅读全文
posted @ 2023-04-24 20:42 刘梦磊 阅读(21) 评论(0) 推荐(0) 编辑
摘要:include <iostream> using namespace std; #include"time_user.h" class student { public: void display(); public: int num; string name; char sex; }; void 阅读全文
posted @ 2023-04-23 20:34 刘梦磊 阅读(48) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> using namespace std; #include<string> class student { public: student(void); ~student(void); void setValues(int n, string str, char 阅读全文
posted @ 2023-04-22 22:59 刘梦磊 阅读(20) 评论(0) 推荐(0) 编辑
摘要:#include<iostream>using namespace std;int main(){ int **a; int row,col,i,j; cout<<"请输出矩阵的行数和列数:"; cin >> row >> col; a = new int*[row]; for(i=0;i<row; 阅读全文
posted @ 2023-04-21 23:19 刘梦磊 阅读(26) 评论(0) 推荐(0) 编辑
摘要:#include<iostream>using namespace std;int main(){ int **a; int row,col,i,j; cout<<"请输出矩阵的行数和列数:"; cin >> row >> col; a = new int*[row]; for(i=0;i<row; 阅读全文
posted @ 2023-04-20 20:26 刘梦磊 阅读(17) 评论(0) 推荐(0) 编辑
摘要:#include <iostream>using namespace std;class Point {public: void setX(int X) { x = X; } int getX() { return x; } void setY(int Y) { y = Y; } int getY( 阅读全文
posted @ 2023-04-19 20:32 刘梦磊 阅读(13) 评论(0) 推荐(0) 编辑
摘要:#include<stdio.h>#include<math.h>#include<time.h> int main(){ int n,i; int f=1; printf("请输入一个整数:"); scanf("%d",&n); for(i=1;i<=n;i++) { f = f * i; } p 阅读全文
posted @ 2023-04-18 20:45 刘梦磊 阅读(34) 评论(0) 推荐(0) 编辑
摘要:#include<iostream>#include<string>#define MAX 1000using namespace std;void showMenu() { cout << "***************************" << endl; cout << "***** 阅读全文
posted @ 2023-04-17 20:23 刘梦磊 阅读(15) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示