An error happens when compiling:
'fopen': The variable or function may be unsafe. Consider using the 'fopen_s' instead.
Solutions: Add #define _CRT_SECURE_NO_DEPRECATE, #define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1 before all statement。
该错误是一个警告,旧版本中的fopen函数没有进行内存检测,可能会溢出,在新版本的VS中提醒编程人员采用更为安全的fopen_s函数代替fopen函数。