Now press the Next button and then the Finish button. This will generate a file called name.cpp where name is your entered project name. Now look to the Solution Explorer (if you can't see it, click View on the menu then Solution Explorer), click name.cpp and press F2. Now press backspace twice so you end up with name.c.
Press F7 To compile. If you get an error that say "fatal error C1853: 'Debug\name.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)" then just click the project menu, properties and change Create/Use Precompiled Header from Use Precompiled Header to Create Precompoiled Header. Press the Apply button. It should now compile successfully when you press F7.
Using Existing CodeCreate an empty project as above and remove all lines except
Then paste in your existing code after this include and save it. You should now be able to compile (press F7) and run your application.