ldxcms

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年1月17日

摘要: 错误原因:c运行时库与mfc静态库的冲突引起错误如下:1>nafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new[](unsigned int)" (??_U@YAPAXI@Z) 已经在 libcpmt.lib(newaop.obj) 中定义1>C:\Users\Administrator\documents\visual studio 2010\Projects\UrlTitleLib\Release\UrlTitleLib.exe : fatal error LNK1169: 阅读全文
posted @ 2013-01-17 14:46 ldxcms 阅读(183) 评论(0) 推荐(0) 编辑

摘要: int main(){ string title="This is a test string"; string::iterator pos; pos=remove(title.begin(),title.end(),' '); title.erase(pos,title.end()); cout<<title<<endl;} 阅读全文
posted @ 2013-01-17 11:22 ldxcms 阅读(206) 评论(0) 推荐(0) 编辑