摘要:
#include <iostream>using namespace std;class Test{private: static int x; //静态变量 int n;public: Test(){}; Test(int a,int b) { x=a; n=b; } static int fun 阅读全文
posted @ 2020-12-13 11:44
bobo哥
阅读(155)
评论(0)
推荐(0)
摘要:
源程序: #include <iostream>using namespace std;//shape类中有纯虚函数,所以shape类是抽象类,抽象类定义的对象//也是抽象的,只能用指针对象,不能用普通对象,更不能用普通对象实例化class shape{public: virtual double 阅读全文
posted @ 2020-12-13 10:59
bobo哥
阅读(189)
评论(0)
推荐(0)
摘要:
源程序: /*//1、二维矩阵原样输出//2、转90度输出//3、每行最后增加一个元素,变成正方形矩阵输出//4、求矩阵中的最大值和最小值//5、求主对角线和副对角线之和*/#include <stdio.h>int main(){ int Numbers[4][3]={1,1,1, 2,4,8, 阅读全文
posted @ 2020-12-13 10:09
bobo哥
阅读(1653)
评论(0)
推荐(0)

浙公网安备 33010602011771号