I figured I would post a simple Hello World Console Application built with Visual C# 2008. So here we go.
// Directive
using System;
using System.Collections.Generic;
using System.Linq; // Remove if being used in Visual C# 2005
using System.Text;
namespace HelloWorld
{
class Program
{
// Main Method
static void Main(string[] args)
{
// Data Members
string strOutput = "Hello World"; // Set string value
Console.Title = strOutput; // Set console title
Console.WriteLine(strOutput); // Write line of text
Console.ReadLine(); // Read line of text
}
}
}
Visual c# 2008 Hello World Console App...
Posted by
Samson J. Loo
Sunday, September 14, 2008
at
8:27 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment