English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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

1 answers

Do your own homework

2007-03-27 04:58:36 · answer #1 · answered by leaptad 6 · 0 0

fedest.com, questions and answers