#include "stdafx.h"
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
std::wstring str_basic = L"testaa";
std::wstring str_search = L"wwst";
const wchar_t * result =wcsstr(str_basic.c_str(),str_search.c_str());
cout << result << endl;
system("pause");
return 0;
}
//总结:
// wcsstr: 即查询某串字符在另一串字符串的位置,可以用来代替find函数
// @return: 没找到返回null 找到返回那个原先字符串的地址