Monday, 22 June 2009

C# First Lesson

How to create and Execute c# programming in visual studio 2008 command prompt


using System;
class ex{
static void Main (string[] args){
switch (args.Length){
case 0:
Console.WriteLine("no args");
break;
case 1:
Console.WriteLine("one args");
break;
default:
int n=args.Length;
Console.WriteLine(n);
break;
}
}
}





No comments:

Post a Comment