#include "stdafx.h"
#include
#include
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
string a;
string b;
cout << "输入字符串A:";
cin >> a;
cout << "输入字符串B:";
cin >> b;
if (a.find(b) < a.length())
{
cout << "a中包含b" << endl;
}
else
{
cout << "a中不包含b" << endl;
}
system("PAUSE");
return 0;
}
// VS2013中测试通过!!