- 博客(14)
- 收藏
- 关注
转载 Linux 系统命令及其使用详解(大全)
Linux 系统命令及其使用详解(大全)(来源:中国系统分析员) cat cd chmod chown cp cut 名称:cat 使用权限:所有使用者 使用方式:cat[-AbeEnstTuv] [--help] [--version] fileName 说明:把档案串连接后传到基本输出(萤幕或加 > fileName 到另一个档
2015-08-02 18:12:10
280
1
转载 Unix编辑器概述
一、Unix编辑器概述 编辑器是使用计算机的重要工具之一,在各种操作系统中,编辑器都是必不可少的部件。Unix及其相似的ix 操作系统系列中,为方便各种用户在各个不同的环境中使用,提供了一系列的ex编辑器,包括 ex, edit,ed 和 vi.其中ex,edit,ed都是行编辑器,现在已很少有人使用,Unix提供他们的原因是考虑到满足各种用户特别是某些终端用户的需要。值得庆幸的是,
2015-08-02 18:07:07
388
转载 iostream
16-1#include #include void main(){ char buf[]="12345678"; int i,j; istrstream s1(buf); s1 >> i;//将字符串转换为数字 istrstream s2(buf,3); s2 >> j; //将字符串转换为数字 cout
2015-07-26 20:00:35
470
转载 vector 四
13-31#include #include using namespace std;void main(){ vector intVect; for(int i=0;i intVect.push_back(i); cout vector::iterator it=intVect.begin(); while
2015-07-26 19:58:16
259
转载 vector 三
13-21//rotate#include #include #include using namespace std;void Output(int val){ cout }void main(){ vector charVect; charVect.push_back('B'); charVect.push_bac
2015-07-26 19:57:01
240
转载 vector 二
13-11#include "stdafx.h"#include #include using namespace std;void main(){ multiset cmultiset1; //建立集合1 cmultiset1.insert('C');//向集合1 插入元素 cmultiset1.insert('D'); cmult
2015-07-26 19:49:23
225
转载 vector
13-1#include "stdafx.h"#include #include #include using namespace std;void Output(char val){ cout }int main(){ vector charVector; //创建字符型向量 charVector.push_back
2015-07-26 19:46:42
271
转载 枚举变量二
#include using namespace std;enum Weekday {Sunday,Monday,Tuesday,Wednesday,Thresday,Friday,Saturday};void main(){ Weekday day1,day2; day1=Monday; day2=Saturday; int n;
2015-07-26 19:43:46
258
转载 定义函数模板
#include using namespace std;template //定义一个模板类型type Max(type array[len]) //定义函数模板{ type ret = array[0]; //定义一个变量 for(int i=1; i {
2015-07-26 19:43:10
342
转载 枚举变量的使用
#include using namespace std;void main(){ enum Weekday {Sunday,Monday,Tuesday,Wednesday,Thresday,Friday,Saturday}; int a=2,b=1; Weekday day; day=(Weekday)a; cout
2015-07-26 19:41:30
616
转载 引用调用的用法
#include using namespace std;swap(int & a,int & b){ int tmp; tmp=a; a=b; b=tmp;}void main(){ int x,y; cout cin >> x; cin >> y; if(x
2015-07-26 19:40:45
377
转载 二维数组行列转换
#include #include using namespace std;int fun(int array[3][3]){ int i,j,t; for(i=0;i for(j=0;j { t=array[i][j]; array[i][j]=array[j][i];
2015-07-26 19:39:48
1075
转载 函数重载
#include using namespace std;int Add(int x ,int y) //定义第一个重载函数{ cout return x + y; //设置函数返回值}double Add(double x,double y) //定义第二个重载函数{
2015-07-26 19:38:44
199
原创 定义名字空间
#includeusing namespace std;namespace Output //定义命名空间{ void Show() //定义函数 { cout } namespace MyName
2015-07-26 10:43:51
331
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人