自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 收藏
  • 关注

转载 Linux 系统命令及其使用详解(大全)

Linux 系统命令及其使用详解(大全)(来源:中国系统分析员)   cat cd   chmod chown   cp cut  名称:cat   使用权限:所有使用者   使用方式:cat[-AbeEnstTuv] [--help] [--version] fileName   说明:把档案串连接后传到基本输出(萤幕或加 > fileName 到另一个档

2015-08-02 18:12:10 263 1

转载 Unix编辑器概述

一、Unix编辑器概述      编辑器是使用计算机的重要工具之一,在各种操作系统中,编辑器都是必不可少的部件。Unix及其相似的ix 操作系统系列中,为方便各种用户在各个不同的环境中使用,提供了一系列的ex编辑器,包括 ex, edit,ed 和 vi.其中ex,edit,ed都是行编辑器,现在已很少有人使用,Unix提供他们的原因是考虑到满足各种用户特别是某些终端用户的需要。值得庆幸的是,

2015-08-02 18:07:07 368

转载 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 437

转载 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 227

转载 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 216

转载 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 208

转载 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 255

转载 枚举变量二

#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 231

转载 定义函数模板

#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 324

转载 枚举变量的使用

#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 571

转载 引用调用的用法

#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 358

转载 二维数组行列转换

#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 1053

转载 函数重载

#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 150

原创 定义名字空间

#includeusing namespace std;namespace Output                            //定义命名空间{    void Show()                            //定义函数    {        cout    }    namespace MyName          

2015-07-26 10:43:51 305

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除