摘要: int转stringint n = 0;std::stringstream ss;std::string str;ss<<n;ss>>str;string转intstd::string str = "123";int n = atoi(str.c_str()); 阅读全文
posted @ 2016-05-27 17:18 盛小胖 阅读(151) 评论(0) 推荐(0) 编辑
摘要: ASCII码表 0-127 阅读全文
posted @ 2016-05-27 17:17 盛小胖 阅读(182) 评论(0) 推荐(0) 编辑
摘要: ①首先将vector排序 sort( vecSrc.begin(), vecSrc.end() ); // 1,2,3,3,4,4,6,7,8,9 ②然后使用unique算法,unique返回值是重复元素的开始位置。 vector<int>::iter pos; pos = unique(ivec. 阅读全文
posted @ 2016-05-27 13:56 盛小胖 阅读(1140) 评论(0) 推荐(0) 编辑
摘要: When a table column is defined with the implicitly hidden attribute, that column is unavailable unless it is explicitly referenced. For example, if a 阅读全文
posted @ 2016-05-27 12:04 盛小胖 阅读(564) 评论(0) 推荐(0) 编辑