Error with clrscr() on Dev C++ 5.4.2

前端 未结 6 1439
孤城傲影
孤城傲影 2021-01-20 14:13

While programming C on the old Turbo C++ compiler I can use the clrscr() method of the \"conio.h\" header file but not on Dev C++ 5.4.2.(It gives an unusual error Id returne

6条回答
  •  春和景丽
    2021-01-20 15:14

    The Conio.h header is not a part of C Standard Libary. According to wikipedia:

    conio.h is a C header file used mostly by MS-DOS compilers to provide console input/output.1 It is not described in The C Programming Language book, and it is not part of the C standard library, ISO C nor is it defined by POSIX.

    So you just don't have this header.

    The errors you are getting are linker errors reporting that it can't find the clrscr() function in any of the headers that hare available for it.

    Also, check this question.

提交回复
热议问题