I am really not sure what is going on here. You are attempting to use a main() function like I've never seen it before. Therefore, this method you are using is more than likely unconventional.
To me, it seems like you are declaring an 'int' type variable called main (which I think is a c++ reserved keyword) and then attempting to initialize the poor int var with a bunch of non-int related gobbledygook.
I am not sure if you are trying to inline the main() function, or attempting to pass in a couple of arguments to the main() function (in which case you could consider using the argc argv[] command-line arguments) or if you are just trying to use a couple of default arguments (which I'm not sure if it is allowed for main()).
Anyway, the rest of the world is coding main() like this:
#include<iostream>
using namespace std;
int main()
{
cout << "Hello world!\n";
cin.get();
return 0;
}
Reputation Points: 237
Solved Threads: 117
Practically a Posting Shark
Offline 822 posts
since Oct 2005