To build your first program in C you need to follow this steps:
- Start your Microsoft Studio 2013
- Before that you need to install the Visual Studio 2013 for Windows Desktop
- File > New Project > Visual C++ > Win32 Console Application
- Next > console application; Check “Empty project”; Finish
- On “Solution Explorer”, on the Folder “Source Files” click on the right button of your mouse and Select “Add”, “New Item…”
- Select “C++ File (.cpp)”; Add a name to your file; Click “Add”
- Create a “Hello World” program:
- #include <stdio.h>
void main()
{
printf(“Hellow World!”);
getchar();
}
- #include <stdio.h>
- DEBUG > Start Debugging
- Done 😉
Source: http://prezi.com/d7bms7fvmkdh/?utm_campaign=share&utm_medium=copy&rc=ex0share
If you are having problems with “_CRT_SECURE_NO_WARNINGS”
- Right click on your cpp file, and select “Properties”
- “Configuration Properties”; “C/C++”, “Preprocessor”; Edit “Definitions” with a new line:
_CRT_SECURE_NO_WARNINGS
http://youtu.be/SByjwMKbRqY