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.
How to write c/c++ program using curses for patterns?
Do your own homework
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment