Write a C/C++ program using the curses library that traces out patterns on the terminal screen. Your program should read characters from a file (until the end of file) and perform an action depending on the character just read. If the character is a :
'u': display '*' on the row above the current location, same column
'd': display '*' on the row below the current location, same column
'l': display '*' on the colum to the left of the current location, same row
'r': display '*' on the colum to the right of the current location, same row
At the start, the first '*' is always displayed at the center of the terminal screen.
Ask the user for the filename to read from.
2007-03-27
04:56:20
·
1 answers
·
asked by
A.J.
1
in
Computers & Internet
➔ Programming & Design