Oops, I forgot the #include <iostream> header for std::cin.ignore(); to work. Aside from that, it must be you setting up your project blindly. Don't use precompiled headers, don't use any stupid security check stuff it tries to sell you. Uncheck pretty much everything.
I started a blank file and copied what you had in with the iostream. I still don't understand why it won't compile:
#include <stdio.h>
int main(int argc, const char* argv[])
{
printf("Go forget yourself, VS is the best C++ compiler for Windows.\n");
printf("Also, call std::cin.ignore(); to keep the window open until you're done with it.");
#include <iostream>
std::cin.ignore();
}
Also tried it like this:
#include <stdio.h>
#include <iostream>
int main(int argc, const char* argv[])
{
printf("Go forget yourself, VS is the best C++ compiler for Windows.\n");
printf("Also, call std::cin.ignore(); to keep the window open until you're done with it.");
std::cin.ignore();
}
Just to make sure.
Still didn't work.