Why I can't use the clrscr(); and gotoxy(); in some compilers?
There are few functions which are available in some compliers but not the others.
say the example :- The functions 'void, clrscr() etc are not in ANSI C++, while it is supported by turbo c++.
Now say
_setcursortype(_NORMALCURSOR);
this function is not available in in early releases Turbo C(like 2.0), but was in some later releases, I think..
Now here ...................
Now this clrscr() is declared under #include <conio.h>.
Now if u are using GCC, then it does not contain a C library, it just uses the library (headers included) that come with the OS.
i.e. these most functions are compiler as well as OS dependent and it changes even in versions of the same compiler.
Hope it cleared ur doubts...