Archived

This topic is now archived and is closed to further replies.

c# error

This topic is 6361 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi i just downloaded the c# stuff from microsoft but i cant get even a simple "hellow orld" program to work, when i compile it i get "bad command or filename" here is my code :-
using System;
class Hello
{
static void Main() {
Console.WriteLine("hello");
}
}
 

Share this post


Link to post
Share on other sites
I believe what Mr. Task was saying, is try this (though I have no clue about C# myself).

using System;
class Hello
{
static void main()
{
Console.WriteLine("Hello!");
}
};




- Goblin
"In order to understand the full depth of mankind, you must first seperate the word into its component parts: 'mank' and 'ind'."

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
"bad command or filename" sounds like a DOS/Windows-Console error.
Are you sure that you''re in the directory containing the compiler, or that you have it in your PATH environemnt variable, when you issue the compile command...

Share this post


Link to post
Share on other sites