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篇)
变量和简单数据类型
print("hello word") message='hello word' print(message) message="hello' world" print(message) name='ada lovelace' print(name.title...
2019-07-22
0
345
分别用指数形式和小数两种格式输出
#include<iostream> #include<iomanip> using namespace std; int main() { const double pi = 3.14159; double r, c, s; cin >> r; c = ...
2019-06-25
0
340
输出63.215,域宽为10,多余位置用&占位,分别用右对齐,左对齐和内部对齐的方式输出
#include <iostream> #include<iomanip> #include<string> using namespace std; int main() { string b="+6"; float a=63.215;...
2019-06-24
0
358
加法 输入输出运算符重载
#include<iostream> using namespace std; class Add { private: int x, y; public: Add(int aa = 0, int bb = 0) { x = aa; y = bb; } void disp...
2019-06-24
0
482
设计一个汽车类(类的继承)
#ifndef _TAXI_ #define _TAXI_ #include<iostream> #include<string> using namespace std; class Car { private: int carnum; string carname;...
2019-06-24
0
606
设计一个三角形类(多文件)
#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
首页
上一页
3
4
5
6
7
8
9
10
11
12
下一页
末页