Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 1. Simple Sample > A Simple Sample

A Simple Sample

No, the sample is not going to be “Hello, World!” This sample is a simple managed console application that prompts the user to enter an integer and then identifies the integer as odd or even. When the user enters something other than a decimal number, the application responds, “How rude!” and terminates. (See the source file Simple.il on the companion CD included with this book.)

The sample uses managed console APIs from the .NET Framework class library for console input and output, and it uses the unmanaged function sscanf from the C run-time library for input string conversion to an integer.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint