[Warning] implicit declaration of function ‘clrscr‘ [-Wimplicit-function-declaration]

1.出现这问题,是因为你的clrscr();缺少头文件。在代码前面加入:

#include<conio.h>
#include<string.h>

2.还是报错,将clrscr();改为system(“cls”);
如果是Linux系统改为system(“clear”);

你可能感兴趣的:(笔记)