#include <QtCore/QCoreApplication>
#include <string>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
string szStr = "Bigshow_Zheng08";
string::size_type pos = szStr.find("91");
if (pos == string::npos)
{
cout << "NB" << endl;
pos = szStr.rfind("Z");
cout << pos << endl;
}
return a.exec();
}
-->
NB
8