int __tmain( ) { Solution solu; cout <<solu.FirstNotRepeatingChar("google") <<endl; return 0; }
int main() { string str = "solution"; Solution s =Solution(); int index = s.FirstNotRepeatingChar(str); cout<<"the index of First not repeating char of "<<str<<" is "<<index<<endl; }
int main(){ Solution sol ; string str("google"); cout << sol.FirstNotRepeatingChar(str) << endl; return 0; }