WOW :) You are confused, Mr.Cpper.
Programming in Console mode is different than in Windows application. Forget about int main() here, because there is a different WinMain function that has different parameters.
I think you need to read through this tutorial: http://www.winprog.org/tutorial/
Hey, did you notice that you #included <iostream> without using it? See through the tutorial, if you think you need more skills in Console mode (the terminal/ the command prompt), then you may take it easy on Windows programming.