CString str = _T("C:\Users\Administrator\Desktop\手持上传数据_20130111144101_036936929269.zip");
int find = str.ReverseFind(_T('\'));
我想查找str字符串中的最后一个\的位置,使用CString类的ReverseFind函数。
但是参数设置为_T('\'),编译器就会把\当成转义字符,或者字符串连接符?反正是编译错误:
error C2001: newline in constant
fatal error C1057: unexpected end of file in macro expansion