LiXiang666
LiXiang666
全部文章
分类
acm集锦(1)
c/c++(36)
Java(2)
mos(1)
PTA(1)
python(26)
Virtual Judge(6)
数据结构(13)
未归档(11)
蓝桥杯(29)
归档
标签
去牛客网
登录
/
注册
沐丶偶
For day In experience。
全部文章
(共126篇)
转换构造函数
#define _CRT_SECURE_NO_WARNINGS #include<iostream> using namespace std; class Swap { private: int a, b; public: Swap(int n,int m):a(n),b(m){} ...
2019-06-15
0
278
友元函数
#define _CRT_SECURE_NO_WARNINGS #include<iostream> #include<cstdlib> #include<cmath> using namespace std; class MyPointer { public: ...
2019-06-12
0
302
抽象类
#define _CRT_SECURE_NO_WARNINGS #include<iostream> #include<cmath> using namespace std; class shape { public: virtual void getarea() = 0;...
2019-06-12
0
289
static
#define _CRT_SECURE_NO_WARNINGS #include<iostream> #include<cstring> using namespace std; class Date { private: int m_nYear, m_nMonth, ...
2019-06-01
0
371
格式化控制
#define _CRT_SECURE_NO_WARNINGS #include<iostream> using namespace std; int main() { float f = 20.2; cout.setf(ios::scientific | ios::uppercas...
2019-05-28
0
304
标准输入流
#define _CRT_SECURE_NO_WARNINGS #include<iostream> using namespace std; int main() { cout << "first call" << cin.get() &l...
2019-05-28
0
289
标准输出流
#define _CRT_SECURE_NO_WARNINGS #include using namespace std; int main() { char ch = ‘a’; cout.put(ch) << endl; cout.put(‘a’).put(‘b’).put(‘c’) ...
2019-05-28
0
288
常数据成员 ,常函数
常数据成员通过初始化列表初始化,不可被修改 #define _CRT_SECURE_NO_WARNINGS #include<iostream> using namespace std; class Circle { public: Circle(double con_radius)...
2019-05-26
0
318
虚析构函数
//如果基类析构函数不是虚析构函数,派生类的析构函数不会被调用 #define _CRT_SECURE_NO_WARNINGS #include<iostream> using namespace std; class Animal { public: Animal(char *nam...
2019-05-25
0
311
虚基类
#define _CRT_SECURE_NO_WARNINGS #include<iostream> using namespace std; class Animal { public: Animal(int age) :m_nage(age) { cout <...
2019-05-25
0
419
首页
上一页
4
5
6
7
8
9
10
11
12
13
下一页
末页