KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
My code is as follows: std::cin >> str; for ( char c : str ) if ( c == 'b' ) vector.push_back(i) //while i is the index of c in str Is this doable? Or I will have to go with the old-school for loop?
Tags (comma-separated)
Save Edits
Cancel