Microsoft Visual Studio 使用集锦一

来源:互联网 发布:携程 知乎 亲子园 编辑:程序博客网 时间:2024/06/06 21:00

2017/9/22 22:32

编译程序有时会有这样的错误
这里写图片描述
错误 C4996 ‘scanf’: This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

编译器默认要求使用VS提供的安全函数,所以这样的情况要么使用安全函数,要么将其安全检查屏蔽掉

#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include <math.h>

2017/9/22 22:58

system("pause");

令程序暂停

printf("RSA加密算法演示\n");printf("1.设置参数    2.加密演示      3.解密演示      4.退出\n");system("pause");printf("请输入命令:");

这里写图片描述


原创粉丝点击