Complete listing of Hello1.cs
/*File: Hello1.cs
This is a very simple C# program. It illustrates
the basic structure of a C# program, which
requires a controlling class with a Main method.
Also, global variables and global methods are
not allowed.
To compile this program on a computer with the
MS.NET framework installed, enter the following
command at the command prompt:
csc Hello1.cs
A successful compilation will produce a single
output file named Hello1.exe
To run the program, enter the following command
at the command prompt in the directory
containing the exe file:
Hello1
************************************************/
public class Hello1{
public static void Main(){
System.Console.WriteLine("Hello World");
}//end Main
}//end class Hello01
Listing 1
|