04 2023 档案
摘要:#include <iostream>using namespace std;class person {public: person() { cout << "person的无参构造函数的调用" << endl; } person(int a) { age = a; cout << "person
阅读全文
摘要:#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
阅读全文
摘要:#include <iostream>using namespace std;class person {public: person() { cout << "person的无参构造函数的调用" << endl; } person(int a) { age = a; cout << "person
阅读全文
摘要:#include <iostream>using namespace std;class person {public: person() { cout << "person的无参构造函数的调用" << endl; } person(int a) { age = a; cout << "person
阅读全文
摘要:#include <iostream>using namespace std;class Person {public: int age; Person() { cout << "默认构造函数调用" << endl; } Person(int a) { age = a; cout << "有参构造函
阅读全文
摘要:include <iostream> using namespace std; #include"time_user.h" class student { public: void display(); public: int num; string name; char sex; }; void
阅读全文
摘要:#include<iostream> using namespace std; #include<string> class student { public: student(void); ~student(void); void setValues(int n, string str, char
阅读全文
摘要:#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;
阅读全文
摘要:#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;
阅读全文
摘要:#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(
阅读全文
摘要:#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
阅读全文
摘要:#include<iostream>#include<string>#define MAX 1000using namespace std;void showMenu() { cout << "***************************" << endl; cout << "*****
阅读全文