I ask for 2 related questions.
1-How we can Put outputs(such as Results and Messages) inside a box in a c# console application.
2-How we can draw rectangle in a c# console application.thank u for any sample tutorial or advice
I ask for 2 related questions.
1-How we can Put outputs(such as Results and Messages) inside a box in a c# console application.
2-How we can draw rectangle in a c# console application.thank u for any sample tutorial or advice
There are curses bindings for C# (that might be a good start): http://curses-sharp.sourceforge.net/
If you want to write it by yourself, You can use extended ascii code to draw simple shapes in a console. Extended AScii Table
Assuming you just meant a character box this will do it.
I edited the code to put a message in their. You will need to do more work on the boundary conditions. Ex no space in the message a word that is longer then the box but this should be enough to get you started.