Question: In C++ Task A. Testing ASCll Write a program test-ascii.cpp that asks the user to input a line of text (which may possibly include spaces).
In C++

Task A. Testing ASCll Write a program test-ascii.cpp that asks the user to input a line of text (which may possibly include spaces). The program should report all characters from the input line together with their ASCII codes. Make sure to print exactly one space between the character and it's code Example: s ./test-ascii Input: Cat :3 Dog 67 a 97 t 116 32 : 58 3 51 32 D 68 g 103 Hint: When you are printing a value of type char on the screen, it is normally shown as a symbol. To print it as a number (as its ASCII code), type cast it to integer: cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
