Command Line Arguments and C++ ASCII FONT ART I am NOT ASKING for the solution--
ID: 3889790 • Letter: C
Question
Command Line Arguments and C++ ASCII FONT ART
I am NOT ASKING for the solution--I would like to get advice, tips, suggestions, and hints to help me write my own source code. Thank you.
Arg1: String "display"
Arg 2: Filename containing the bitmap font. The bitmap font file will render each character in large format.
Arg3: The message - a string of one or more characters such as "H" or "Hello World!"
Arg4: The character that is to be used as the foreground (the letters)
Arg5: The character that will be used as the background for the ASCII font art.
Command Line Terminal:
./ ascii_font_art.out display simple_font.txt Hello World! @ .
The ' period character "." is argument 5.
ASCII font art message will appear on the terminal (std:: cout)
Or use Command LIne file-redirection to send std::cout to a file.
In this file every letter uses ’#’ for the foreground character and ’.’ for the background. You’ll need to swap in the desired foreground & background characters as you output the artwork. We have provided code to help your program load the font file. Please review this code carefully. You may use/modify this code as you wish in your solution.
I am NOT ASKING for the solution--I would like to get advice, tips, suggestions, and hints to help me write my own source code. Thank you.
Explanation / Answer
Declare two character type variable to store foreground character and background character.
Example: char fc, bc;
Accept your own character for foregournd and background.
Modify the above statement to: