VI设置通过/etc/vim/vimrc设置vi的基本操作格式. 全局属性通过末行模式输入可临时设置. syntax on ;高亮显示 set tabstop=4 setsofttabstop=4 ;设置(软)制表符宽度为4 set shiftwidth=4 ;设置缩进的空格数为4 set autoindent ;设置自动缩进 set nu ;左行显示文本行号set nonu ;去除行号 set ic :忽略大小写 ignore case set cursorline ;show line --
转自:http://www.cnblogs.com/xFreedom/archive/2011/05/16/2048037.html 要想使用标准C++中string类,必须要包含 #include <string>// 注意是<string>,不是<string.h>,带.h的是C语言中的头文件 using std::string; using std::wstring; 或 using namespace std; 下面你就可以使用string/wstring了