execution problem in running a simple program.
Hello! friends
I am new to C sharp programming language. When I execute the below written
code I get error:
using System;
class Hello
{
static void Main() {
Console.WriteLine("Hello, world");
}
}
I save the above code as hello.cs.
When I compile the following code at DOS prompt:
csc hello.cs
I get no error message and hello.exe should be generated, but I can't find
it...
Please help regarding this matter......
Re: execution problem in running a simple program.
Strange, but try using the /out:<file> parameter when compiling the program:
csc /out:"C:\Hello.exe" hello.cs
It should work and put the .exe file on your C-drive
Morten
"shrijeet" <shrijeet@xlnce.com> wrote:
>
>Hello! friends
>
>I am new to C sharp programming language. When I execute the below written
>code I get error:
>
>using System;
>class Hello
>{
> static void Main() {
> Console.WriteLine("Hello, world");
> }
>}
>
>I save the above code as hello.cs.
>
>When I compile the following code at DOS prompt:
>
> csc hello.cs
>
>I get no error message and hello.exe should be generated, but I can't find
>it...
>
>
>Please help regarding this matter......