菜鸟的问题。。我的代码里string字符串怎么不能用size()函数呢
int temp;
int i=m_strQuery.size();
int a=(((pAddrDoc->chehao).size())-i);
string s=(pAddrDoc->chehao).substr(a);
temp=s.compare(m_strQuery);
compare()3参数不能用 size() 也报错 疯了!各位高手请问怎么回事?
: error C2039: 'size' : is not a member of 'CString'
: see declaration of 'CString'
头文件是 #include <iostream>
#include <string>