Originally posted by Stoned_Coder
int main(void)
is correct c and equivalent to
int main()
in c++
i.e. in c++ there is no difference between
int main() and int main(void)
hmm, i never knew that, but i guess it would make sense.....rather than use either or would it be better to use
Code:
int main(int argc, char* argv[])
{
}
?
//also, sometimes when i let VC 6.0 create my cpp file for me and it uses that with stdafx header sometimes it'll compile error that it cant open that header file, but then i make another one the same way and it works....