80 likes | 90 Views
Console Tour. A walkthrough of a console project. Console Applications. Interact with user through the keyboard Displays as black text box Most primitive form of application Makes use of Console class static functions Good for: Demonstrations System programs. Create Console Project.
E N D
Console Tour A walkthrough of a console project
Console Applications • Interact with user through the keyboard • Displays as black text box • Most primitive form of application • Makes use of Console class static functions • Good for: • Demonstrations • System programs
Console Code Shell • Comments: • Program class is created solely to provide an entry point for the program • Main() function is entry point for all C# programs. In console application, it comes with arguments identifying what user typed on command line
Debug Windows Signals that program has stopped at a breakpoint Provides a list of variable values at point where stopped
Parting words… • Console programs are easy to create, test and understand • Many of the class demos so far were created using console programs • Sometimes used as entry point for Windows programs • Major drawbacks: • User I/O is a pain in the neck, especially when complex strings are input • Ugly as entry points