October 2008
Beginner to intermediate
680 pages
16h 48m
English
Most applications communicate information to users by displaying messages via the application's GUI. However, it is also useful at times to be able to display simple text messages to the command-line window from which we are running a program as a "quick and dirty" way of verifying that a program is working properly (you'll learn how to run C# programs from the command line in Chapter 13). Until we discuss how to craft a C# GUI in Chapter 16, this will be our program's primary way of communicating with the "outside world."
To print text messages to the screen, we use the following syntax:
Console.WriteLine(expression to be printed);
The Console.WriteLine method can accept very complex expressions and does its best ...
Read now
Unlock full access