上一页 1 ··· 23 24 25 26 27
摘要: #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 刘梦磊 阅读(22) 评论(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 刘梦磊 阅读(31) 评论(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 刘梦磊 阅读(19) 评论(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 刘梦磊 阅读(17) 评论(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 刘梦磊 阅读(37) 评论(0) 推荐(0)
摘要: #include<iostream>#include<string>#define MAX 1000using namespace std;void showMenu() { cout << "***************************" << endl; cout << "***** 阅读全文
posted @ 2023-04-17 20:23 刘梦磊 阅读(25) 评论(0) 推荐(0)
上一页 1 ··· 23 24 25 26 27