Posts by Guilherme Andreúce Monteiro • 1 point
1 post
-
-1
votes1
answer56
viewsQ: In the vector category pair<string, int>: When adding a new string, check whether a future string has the same value as an already added string
And if so, change the value of the previously added pair instead of adding a new pair. So, I’d like to add string pairs, int into an array, only, to avoid redundant pairs, check if the string…