cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Data Structures and Algorithms
Data Structures and Algorithms
Jun 30, 2018 at 8:50am UTC
Dtodorinov
(1)
Adding a list of words - strings (characters without limitation) to create an index of common words in it by ignoring the letter register (small / main)
Example
Input Output
5 3
prefix
postfix
infix
POSTFIX
PREFIX
infix
prefix
postfix
Jun 30, 2018 at 9:07am UTC
Repeater
(3046)
Read each input into a string.
If you can convert the string to a number, discard it.
Otherwise, turn the string to lowercase and add it to a std::set<string> object
When finished input, iterate over the std::set object, outputting each item.
Topic archived. No new replies allowed.