How to Draw Box,Rectangle in a C# Console application
问题 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 回答1: Assuming you just meant a character box this will do it. private static void DrawABox( int x, int y, int width, int height,char Edge,string Message ) { int LastIndex =0 ; Console.SetCursorPosition(x, y); for ( int h_i = 0; h_i <= height ; h_i++ ) { if ( LastIndex !=