Error with clrscr() on Dev C++ 5.4.2

前端 未结 6 1399
孤城傲影
孤城傲影 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 14:53

    clrscr() didn't get deprecated because it was never part of any standard. It was a vendor-specific function provided as an extension by Borland in the (also non-standard) header. Modern compilers no longer provide this function.

    There's a couple of ways to emulate it, and I'm sure you can find it here - just look at the links in the Related section on the right side.

提交回复
热议问题