摘要: a.h#ifndef A_H_ #define A_H_typedef long int int4;#define MAX( x, y ) ( ((x) > (y)) ? (x) : (y) )#define g_new(structs) malloc(sizeof(... 阅读全文
posted @ 2011-07-21 10:52 wangkangluo1 阅读(366) 评论(0) 推荐(0) 编辑
摘要: a.h#ifndef A_H_#define A_H_#include <iostream>class Tdate{public: void Set(int,int,int); int IsLeapYear(); void Print();private: int month; int day; int year;};#endif a.cc#include <iostream> #include "a.h" using namespace std;void Tdate::Set(int m,int d,int y){ ... 阅读全文
posted @ 2011-07-21 10:44 wangkangluo1 阅读(729) 评论(0) 推荐(0) 编辑
摘要: 字符串替换 :3,15 s#"#'#g #将3到15行的"换成':%s/\%u3000//g 删除中文空格生成帮助标签:helptags ~/.vim/doc 阅读全文
posted @ 2011-07-21 10:15 wangkangluo1 阅读(321) 评论(0) 推荐(0) 编辑