Hello, I am very new to the whole C++ concept and am just trying to write a simple program. All I need is this:
-repeatedly ask the user for a number between 1 and 10
-if the user complies, thank them, and ask again.
-on error, outline the terminal screen in ! and display a big red error message in the center. Something like:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! !!
!! !!
!! !!
!! ERROR!!! !!
!! Can't you follow instructions? !!
!! Now enter a number between 1 and 10!: !!
!! !!
!! !!
!! !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I know how to ask the user for numbers and to thank the user and ask again. The part I have trouble with is getting the rectangle with text to appear in an 80x24 terminal. If someone could help out with some just this part I would appreciate it.
Thanks
|
//My code is so error-filled I won't bother posting it yet lol
|