12 2022 档案
摘要://#include<iostream> //using namespace std; // //class Stu //{ //public: // int temp; // Stu(int t) // { // temp = t; // } // //负号 // int operator-()
阅读全文
摘要://#include<iostream> //using namespace std; // //class Stu //{ //public: // int a; // Stu(int a1) // { // a = a1; // } // //关系运算符重载 // int operator>=(
阅读全文
摘要://#include<iostream> //using namespace std; // //class Stu //{ //public: // int a; // Stu() // { // a = 26; // } // int operator+(int b) //在类内重载,左边参数若
阅读全文
摘要://#include<iostream> //using namespace std; // // //class Stu //{ //public: // int a; // double b; // // Stu() // { // a = 12; // b = 13.13; // } //};
阅读全文
摘要://#include<iostream> //using namespace std; // //#define SUM(x) ((x)*(x)) //定义一个宏参数 // // //inline void fun(int i) //{ // cout << (i * i); // //} // /
阅读全文
摘要://#include<iostream> //using namespace std; // //class Stu //{ //public: // int *a; // Stu() // { // a = new int[2]; // a[0] = 13; // a[1] = 12; // }
阅读全文
摘要://#include<iostream> //using namespace std; // //class Stu //{ //public: // int b; // char c[4]; // Stu() //构造函数 // { // b = 4; // c[0] = 'a'; // strc
阅读全文
摘要://#include<iostream> //using namespace std; // //class Stu //{ //public: // static int b; //静态成员无论赋值如何变化,一个静态成员只有一个空间 // Stu() // { // b++; // } // //
阅读全文