Remove Secure Warning in Visual Studio 2013

To resolve the error C4996:

Error 1 error C4996: 'sprintf': This function or variable may be 
unsafe. Consider using sprintf_s instead. To disable deprecation, 
use _CRT_SECURE_NO_WARNINGS. See online help for details.

Add the following marco on the very top of main() file:

#ifdef _MSC_VER
#define _CRT_SECURE_NO_WARNINGS
#endif
Advertisements