Reads One String Cin Character Vector Vector Q37079048

C++ coding problem:. Reads ONE string through cin Have a character vector (vector<char )to store temporary data. Process the string by the follo

. Reads ONE string through cin Have a character vector (vector<char )to store temporary data. Process the string by the following rules, character by character, from left to right. o If the character is an uppercase alphabet, store it at the end of the vector (use push back) o If the character is ‘1’, print the last element of the vector to cout without endl, and remove the element o If the character is

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.