I am using Visual C++ 6.0 and am getting, "error C2447: missing function header (old-style formal list?)"

The code is:

#include <stdafx.h>


{
int main ();
printf("Fuck off Asshole.\n You suck. \n Bit Me Dickhead\n");
return 0
}

I cannot figure out what is going wrong.

Recommended Answers

All 5 Replies

Sorry about the language in it. Just trying to learn C and forgot to change the words before pasting to post.

:(

You're declaring your main function wrong. Another problem is the compiler you're using.

...and you capitalized every noun in your sentences as well as misspelled "bite."

...and you capitalized every noun in your sentences as well as misspelled "bite."

:lol:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.