Jocelyn
Jocelyn

Reputation: 396

"does not contain a static 'Main' method" error

I'm getting the below error at the time I run the Windows application on my program. Can any one help?

Error: Program 'C:\Users\Owner\Documents\Visual Studio 2008\Projects\Project1\Integer Division\Integer Division\obj\Debug\Integer Division.exe' does not contain a static 'Main' method suitable for an entry point Integer Division

Upvotes: 0

Views: 4809

Answers (2)

Void
Void

Reputation: 442

You need to have a:

static void Main()
{
}

If you want to "run" something a main is needed. That is basically the main function as the name implies where your program will run. You should look up any class example with a main() inside of it and put your code inside (the one for integral division ?).

Upvotes: 3

Related Questions