Zoo tutorials: [ SQL | Linux | XML ]
ProgZoo: [ Java | C# | VB | C++ | Perl ]
Log in

A Gentle Introduction to
C# Programming

Running programs

 

0) Hello World

Running programs
There are typically two stages to running a program. First we compile, then we execute.

1. [ C# ] Compile


Big

The C# compiler is likely to be within the c:\WINDOWS\Microsoft.NET\Framework folder The result is an executable file Hello.exe

C:\>\WINDOWS\Microsoft.NET\Framework\v2.0.50215\csc.exe Hello.csc
Microsoft (R) Visual C# 2005 Compiler version 8.00.50215.44
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50215
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.


C:\>Hello
Hello world

C:\>