摘要: linux下vi命令大全进入vi的命令 vi filename :打开或新建文件,并将光标置于第一行首 vi +n filename :打开文件,并将光标置于第n行首 vi + filename :打开文件,并将光标置于最后一行首 vi +/pattern filename:打开文件,并将光标置于第一个与pattern匹配的串处 vi -r filename :在上次正用vi编辑时发生系统崩溃,恢复filename vi filename....filename :打开多个文件,依次进行编辑 移动光标类命令h :光标左移一个字符 l :光标右移一个字符 space:光标右移一个字符 Backs 阅读全文
posted @ 2013-12-29 15:39 中国男孩 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 一、Linux下常用命令:文件与目录操作basename:从文件名中去掉路径和扩展名cd:切换当前工作目录到指定目录chgrp:改变文件所属组chmod:改变文件的权限chown:改变文件的所有者和组cp:复制文件或目录dd:复制文件并转换文件内容file:确定文件类型find:在指定目录下查找文件并执行指定的操作ln:创建文件链接locate/slocate:快速定位文件的路径ls/dir/vdir:显示目录内容mkdir:创建目录mv:移动或重命名文件pwd:显示当前工作目录rename:重命名文件rm:删除文件或目录rmdir:删除空目录touch:修改文件的时间属性updatedb:创 阅读全文
posted @ 2013-12-29 15:37 中国男孩 阅读(1788) 评论(0) 推荐(0) 编辑
摘要: source insight快捷键及使用技巧 退出程序 : Alt+F4重画屏幕 : Ctrl+Alt+Space完成语法 : Ctrl+E复制一行 : Ctrl+K恰好复制该位置右边的该行的字符 : Ctrl+Shift+K复制到剪贴板 : Ctrl+Del剪切一行 : Ctrl+U剪切该位置右边的该行的字符 : Ctrl+;剪切到剪贴板 : Ctrl+Shift+X剪切一个字 : Ctrl+,左边缩进 : F9右边缩进 : F10插入一行 : Ctrl+I插入新行 : Ctrl+Enter加入一行 : Ctrl+J从剪切板粘贴 : Ctrl+Ins粘贴一行 : Ctrl+P重复上一个动作 阅读全文
posted @ 2013-12-29 15:36 中国男孩 阅读(661) 评论(0) 推荐(0) 编辑
摘要: #include #include //#include #include "libintl.h"#pragma comment(lib,"libintl.lib")int main(int argc, char* argv[]){ printf("%s\n", setlocale(LC_ALL,"English")); printf("%s\n", bindtextdomain("messages", "C:\\gettext\\bin\\language&quo 阅读全文
posted @ 2013-11-30 17:38 中国男孩 阅读(325) 评论(0) 推荐(0) 编辑
摘要: #include #include typedef struct node{ char szAvpValue[100]; struct node *next;}TAvp;typedef struct{ TAvp *head; TAvp *tail;}TAvpList;//带头结点的链表void initAvpList(TAvpList *tHead){ tHead = (TAvpList *)malloc(sizeof(TAvpList)); tHead->head = tHead->tail = NULL;}int selectinput(){ int nSelect = 0;L 阅读全文
posted @ 2013-11-01 17:59 中国男孩 阅读(293) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #define MAX 100/*涉及数据结构*/struct salary_Info{ int card_no; //工作卡号 char name[20]; //姓名 int month; //月份 float init_salary; //应发工资 float water_rate; //水费 float electric_rate; //电费 float tax; //税金 float final_salary; //实发工资}SI[MAX];/*1、主函数提供输入、处理和输出部分的函数调用,各功能模块采用菜单方式选择*/static 阅读全文
posted @ 2013-11-01 16:40 中国男孩 阅读(212) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #define MAX 100/*涉及数据结构*/struct salary_Info{ int card_no; //工作卡号 char name[20]; //姓名 int month; //月份 float init_salary; //应发工资 float water_rate; //水费 float electric_rate; //电费 float tax; //税金 float final_salary; //实发工资}SI[MAX];/*1、主函数提供输入、处理和输出部分的函数调用,各功能模块采用菜单方式选择*/static 阅读全文
posted @ 2013-11-01 16:22 中国男孩 阅读(154) 评论(0) 推荐(0) 编辑
摘要: HBRUSH CLogindlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor){if( CTLCOLOR_STATIC == nCtlColor && pDC ){pDC->SetBkColor( SPLASH_BKCOLOR );pDC->SetTextColor( SPLASH_TEXTCOLOR );}if( NULL == m_brushBK.GetSafeHandle() )m_brushBK.CreateSolidBrush( SPLASH_BKCOLOR );HBRUSH hbr = (HBRUSH 阅读全文
posted @ 2013-02-26 12:32 中国男孩 阅读(123) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include "resource.h"void DrawTransparentBitmap(HDC hdc,HBITMAP hBitmap, int xStart, int yStart,int xBitmap, int yBitmap, int xWidth, int yHeight,COLORREF cTransparentColor){ COLORREF cColor; HBITMAP bmAndBack, bmAndObject, bmAndMem, bmSave; HBITMAP bmBackOld, 阅读全文
posted @ 2013-02-26 12:31 中国男孩 阅读(176) 评论(0) 推荐(0) 编辑
摘要: class CLearn18Dlg : public CDialog{// 构造public:CLearn18Dlg(CWnd* pParent = NULL);// 标准构造函数// 对话框数据enum { IDD = IDD_LEARN18_DIALOG };protected:virtual void DoDataExchange(CDataExchange* pDX);// DDX/DDV 支持public:virtual void OnOK();virtual void OnCancel();// 实现protected:HICON m_hIcon;// 生成的消息映射函数virtu 阅读全文
posted @ 2013-02-26 12:31 中国男孩 阅读(187) 评论(0) 推荐(0) 编辑