LiXiang666
LiXiang666
全部文章
c/c++
acm集锦(1)
Java(2)
mos(1)
PTA(1)
python(26)
Virtual Judge(6)
数据结构(13)
未归档(11)
蓝桥杯(29)
归档
标签
去牛客网
登录
/
注册
沐丶偶
For day In experience。
全部文章
/ c/c++
(共36篇)
设计一个三角形类(多文件)
#ifndef _TRIANGLE_ #define _TRIANGLE_ class Triangle { private: double a, b, c; public: Triangle(); Triangle(double a, double b, double c); Triang...
2019-06-24
0
422
格式化控制补充
2019-06-16
0
283
输入输出的数制控制
#define _CRT_SECURE_NO_WARNINGS #include<iostream> using namespace std; int main() { int i, j; cin >> hex >> i >> showbase &...
2019-06-16
0
267
setw()
#define _CRT_SECURE_NO_WARNINGS #include<iostream> #include<iomanip> using namespace std; int main() { char s1[20], s2[20]; cin >>...
2019-06-16
0
278
设计模板类,使得在创建一个对象时可以动态确定它的基类(public)
#define _CRT_SECURE_NO_WARNINGS #include<iostream> using namespace std; class base_A { public: base_A() { cout << "创建base_A"...
2019-06-16
0
285
转换构造函数
#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
首页
上一页
1
2
3
4
下一页
末页