
Boost
j-k
致力于windows下c开发
展开
-
stl string用法总结
在平常工作中经常用到了string类,本人记忆了不好用到了的时候经常要去查询。在网上摘抄一下总结一下,为以后的查询方便: string类的构造函数: string(const char *s); //用c字符串s初始化string(int n,char c); //用n个字符c初始化 string类的字符操作: const char &operator[](int n)c转载 2012-11-25 16:01:08 · 573 阅读 · 0 评论 -
STL list中对象排序
#pragma once #include class CCell { public: RECT rect; public: CCell(); CCell(RECT rc); ~CCell(void); int GetLeft() const;//获取左上角x坐标 int GetTop() const;//获取左上角y坐标 }; #include "StdAfx.h" #inclu原创 2012-10-04 15:26:29 · 783 阅读 · 0 评论