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篇)
标准模板库STL——string类
一 #include<iostream> #include<string> using namespace std; int main() { string s1(8, 'x'); cout << s1 << endl; string s2; ...
2019-08-14
0
449
二级c语言程序填空
# include <stdio.h> #define N 9 void fun(int a[], int n) { int i,j, max, min, px, pn, t; for (i=0; i<n-1; i+=2) { /**********found*...
2019-08-07
0
413
文件操作03——图片文件合成器
#include <iostream> #include<cstdio> #include<cstdlib> using namespace std; int main() { char ch,pic_name[20],file_name[20],finis...
2019-08-01
0
291
文件操作02-文件写入和读出
一.fputc(ch,pc) #include<iostream> #include<cstdio> #include<cstdlib> using namespace std; int main() { FILE *fp; char ch,filename[2...
2019-08-01
0
352
文件操作01——文件打开
#include<iostream> #include<cstdio> #include<cstdlib> using namespace std; int main() { FILE *fp; if(!(fp=fopen("C:\\lixiang....
2019-08-01
0
511
lower_bound&upper_bound
low_bound()的返回值是一个迭代器,返回指向大于等于key的第一个值的位置 #include<iostream> #include<algorithm> using namespace std; int main() { int a[]={1,2,3,4,5,6,7...
2019-07-30
0
254
分别用指数形式和小数两种格式输出
#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
首页
上一页
1
2
3
4
下一页
末页