Convert Lab 4 so that it takes the integer to draw and the character to draw with from a file. You may assume that the number and character data is correctly formatted inside the file you are reading from. The file should consist of several lines each with an integer and a character for drawing with. Your program should draw each integer with the character that occurs on the same line as the integer. An example file with input data would look like this:
42 # 102 X 333 7
And a sample result file from that input data might appear this way:
## ## ## ## ######
## ##
##### ## #####
## #####
XX XX XX XX XX
XXXXXX XX XX XX XX XX XX XXXXXX
XXXXXX XX XXXXXX
XX XXXXXX
777777 77 777777 77 777777
Your program will take the name of the input and output file as arguments from the terminal. You should have no cin prompts. All input will be taken from the input file and all output will be written to the output file.
Once you are satisfied with your work you should hand it in on Blackboard. You should submit your source code file, a data file (input), and a result file (output). Make sure you illustrate multiple integer drawings in your program run’s output and that your input data is composed of a file with multiple lines. Your program should work with a data file containing an arbitrary number of lines (determined at run-time not compile-time).
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here