- 博客(6)
- 收藏
- 关注
转载 list使用中遇到的erase问题(List Iterator Not Incrementable)
list使用中遇到的erase问题(List Iterator Not Incrementable) 在VS2005中使用list的erase遇到了"List Iterator Not Incrementable"问题 举个例子: 1. list sList; list::iterator sP; sList.push_back(1); sList.push_
2012-04-27 00:12:01 383
转载 重大发现:VC++2005,2008或更高版本 之list iterator not incrementable 错误原因
在VC6中 list Tlist; list::iterator iter; iter=Tlist.end(); 再 iter++; 此时iter的游标位置和iter.begin()相等 但在VC6以后的版本中,比如VC2002,2005,2008中 list Tlist; list::iterator it
2012-04-26 23:39:55 405
转载 对C++ STL,list元素的循环删除操作 //断链,出错地方
1 #include iostream> 2 #include list> 3 #include algorithm> 4 using namespace std; 5 6 int main(int argc, char* argv[]) 7 { 8 listint> MyList; 9 10 for (int i = 0; i 1
2012-04-26 15:40:19 619
转载 删除stl list 类对象
#include using namespace std; class A { }; int main() { lista; for(int i=0;i { a.push_back(new A()); } list::iterator i; for(i=a.begin();i!=a.end();i++) { delete *i; i=a.erase
2012-04-20 13:49:16 463
转载 释放资源
BeginPaint()对应EndPaint() GetDC()对应ReleaseDC() CreateCompatibleDC对应DeleteDC() HBITMAP对应DeleteObject()
2012-04-07 23:11:37 429
转载 string转LPCSTR
调用string.c_str() int main() { const string str1 = "aaaa "; LPCSTR s1 = str1.c_str(); cout return 0; }
2012-04-01 22:05:28 688
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人