I have the code for the following problem attached but I can't get my alphabetized list to print to screen.
Please fix..
Given a text file with an arbitrary number of lines, output to the console the lines that are palindromes in alphabetical order. A line is a palindrome if it is spelled the same forwards and backwards. For example: 'atoyota' is a palindrome, but 'ahonda' is not.
Assumptions and Requirements:
* You can't assume a maximum number of lines in the file.
* There may be some blank lines, and they should be ignored.
* The input file name should be given from the command line or read from the keyboard. You don't have to support both methods, pick one, the point being that you can't simply hard code the input file name into your program.
* You may assume that there are at most 50 palindromes in each file.
* You may assume that no line in the file contains more than 80 characters.
* Lines that are not palindromes should NOT be part of the output.
* If a palindrome is repeated multiple times in the file, you should print it the same number of times.
* The palindromes in the output should be printed in alphabetically increasing order.
* For the purposes of this exercise you may treat all punctuation, blank spaces, and differences in case as significant. For example, the following lines are NOT palindromes:
* 'a toyota' because the reverse is 'atoyot a' and the blank space is significant
* 'aToyota' because the reverse is 'atoyaTa' and the case of the letter 't' is significant.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
visual studio c++ 6 or higher