Move Around
- After login, run the command "ncurses-2.exe".
The program shows a star ('*') which is moving around a rectangle.
- You may start from a loop which moves the star along a side.
Use the "curses" library to write a program, which shows a star moving
towards the left
- The flowchart looks like this:
- To move around the four sides of a rectangle, actually you need to
decompose the problem to 4 loops.