Possible Duplicate:
What is the difference between _tmain() and main() in C++?
How the void main(…), int main(..) and int _tmain() differs. They all are single entry and single exit systems. But in what situations we use these start-up functions?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
void main()is invalid; the C++ standard requiresmainto returnint. Some compilers let you get away with it.int main()is one of the two standard forms. The other isint main(int argc, char *argv[]), which can be used to receive command-line arguments. Implementations may permit other forms, but are not required to — but all such forms must returnint.int _tmain()is specific to Microsoft.