随笔分类 -  规范标准

char*+text获取函数格式
摘要:如果你需要即获取一段内存, 也保存到文本. 这种格式比较整洁: 以下是一个sock例子。转载请注明出处.char *content = (char *)malloc(50000);int cttLen = 50000;GetPage(get, host, des, &content, cttLen);free(content);content = NULL;int GetPage(char *get, char *host, char *des, char **content, int &cttLen){ //下载buff + 内嵌文件存储 //拼头 char head_sta 阅读全文

posted @ 2011-04-28 17:57 oleeceo 阅读(623) 评论(0) 推荐(0)

规范
摘要://///////////////////////////////////文档规范///////////////////////////////////////////2011.5.6 标题+一句话说要怎么做+下文1Inline Functions2Define functions inline only when they are small, say, 10 lines or less.3下文//////////////////////////////////////A级///////////////////////////////////////////2011.5.3 函数: 要考虑到 阅读全文

posted @ 2011-04-24 19:21 oleeceo 阅读(136) 评论(0) 推荐(0)

导航