hey guys i know this question has been asked a lot but still geting errors...i want the user to input a string and in dat string output the number of "A,s" in the string but i get an error saying unknown operator "=="....this problem always occurs when using vectors....and want to store my string in vector if dats even possible..pleaaaase help..thanx in advance
You have a container of strings not characters so you must use double quotes on lines 22 and 26. Though if you wish to iterate over each character you probably want another for loop after the first one like: for(unsignedint j = 0; j <Word.at(i).size(); ++j) or using iterators or a ranged-based loop.