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("请输入命令:");