Mega Code Archive
Categories
/
C++ Tutorial
/
String
Find first out of
#include
#include
using namespace std; int main() { string s1 = "this is a test"; int n; n = s1.find_first_not_of("aeiouAEIOU"); cout << "First consonant at " << n << endl; return 0; }