clrscr() not working, getch() working. Why?

后端 未结 3 1679
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-22 04:35

I\'m making a small C program that asks for a key and executes some code in a switch statement.

#include 
#include 

        
3条回答
  •  时光取名叫无心
    2020-12-22 04:52

    clrscr() is never part of any standards.Its a vendor specific functon provided by borland in conio.h(non standard). Try emulate its behavior by calling system("cls") , Include stdlib.h header file.

提交回复
热议问题