Hm as everyone get their helloworlds out there for every prog lang, i too got my own hello World..

Code..

class hello
//This program does not do much
{
static public void Main()
{
System.Console.WriteLine(“Hello World”);
}
}

Console..

D:WINDOWSMicrosoft.NETFrameworkv1.1.4322>csc myhello.cs
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.

D:WINDOWSMicrosoft.NETFrameworkv1.1.4322>myhello
Hello World

D:WINDOWSMicrosoft.NETFrameworkv1.1.4322>

Kool isnt it 🙂
How do i set path iam not getting that right as i do for java 😦 c# sounds similar to java, but it doeasnt need to name the program as that of the public class as we do in java, sounds interesting.

Advertisements