摘要:
代码1:转义字符 点击查看代码 #include<iostream> using namespace std; void test01()//换行 { cout << "Hello World" << endl; //等价于cout << "Hello World\n" << endl; } voi 阅读全文
posted @ 2022-07-17 21:19
MegaDataFlowers
阅读(160)
评论(0)
推荐(0)
摘要:
静态成员变量: // //所有对象共享同一份数据 在编译阶段分配内存空间 // //在类内声明,在类外初始化 静态成员函数: //所有对象共享同一个函数 //静态成员函数只可以访问到静态成员变量 点击查看代码 //#include<iostream> //using namespace std; / 阅读全文
posted @ 2022-07-17 11:34
MegaDataFlowers
阅读(38)
评论(0)
推荐(0)