I have to test the escape sequences. For the escape sequences that move the cursor, print a character before and after printing the escape sequence so it is clear where the cursor has moved. here is the escape sequences:
\'
\"
\\
\a
\b
\f
\n
\r
\t
\v
I just need what i need to do to test the sequences?
Need help on how to test escape sequences
Page 1 of 13 Replies - 751 Views - Last Post: 07 December 2008 - 02:01 PM
Replies To: Need help on how to test escape sequences
#2
Re: Need help on how to test escape sequences
Posted 07 December 2008 - 01:49 PM
What exactly do you mean by test? You could always put them in a program.
#3
Re: Need help on how to test escape sequences
Posted 07 December 2008 - 02:00 PM
I know you have to add them to a program to test them, i just don't know how you would go about that. If you would just use a whole bunch of prints and test where the cursor moves or if there is some other way to go about it
#4
Re: Need help on how to test escape sequences
Posted 07 December 2008 - 02:01 PM
cout << "After this sentence a newline will be printed.\n"; cout << "\t This sentence is tabbed once to the right"; //So on and so forth
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|