After you read each string add it to the list print


C++
Using string and list<> STL classes
Read 5 strings from cin in a for-loop
After you read each string add it to the list such that the strings in the list are alphabetically sorted
Print the list (which must be sorted)
TIP: You can use <, >, <=, >= operators for string comparison.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: After you read each string add it to the list print
Reference No:- TGS0135811

Expected delivery within 24 Hours