1.Create a new C# console application project by using Visual studio .
2.And type below coding ad compile it
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
// Output text to the screen.
Console.WriteLine(“The first app in Beginning C# Programming!”);
Console.ReadKey();
}
}
}
3.And press the any key to exit from the application.
Brief discussion
1.We used to print the output we use "Console.WriteLine"
2.Here we use "Console.ReadKey();" to detect keyboard input.if we press any key then program will complete it's execution.We used this method here to see out put of the program.otherwise you can't see the output.because it will complete the execution with in second and you can't see the output.to avoid that we use this command.
Thursday, October 9, 2008
Thursday, August 14, 2008
C# reference Books
If any one want to get C# reference book please ask me i will provide the link for that.Else I also can send the book that are very useful to learn basic.You can send me a email.My email address is erandika1986@gmail.com.
Wednesday, August 13, 2008
Learning C# With Basic
The aim of putting this blog is give the C# programming knowledge to the beginers
Subscribe to:
Posts (Atom)