一. 问题:linux下运行出现 “sh: 1: pause: not found”
原因:在windows系统下,使用此语句,但linux不认识 system("pause");
解决方法:删去system("pause");
二. 问题: 编程时出现:[Warning] incompatible implicit declaration of built-in function ‘memset’[enabled by default] 或
[Warning]: incompatible implicit declaration of built-in function ‘strcpy’[enabled by default]
原因:缺少头文件
解决方法:加上#include <string.h>
三.问题:warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat]
解决方法:将‘%d’ 改为‘%lud’