1 / 8

Console Tour

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.

Download Presentation

Console Tour

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Console Tour A walkthrough of a console project

  2. 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

  3. Create Console Project

  4. 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

  5. Console code example

  6. Console output

  7. Debug Windows Signals that program has stopped at a breakpoint Provides a list of variable values at point where stopped

  8. 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

More Related