CLRSCR();和GOTOXY(); [英] CLRSCR(); and GOTOXY();

查看:77
本文介绍了CLRSCR();和GOTOXY();的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么我不能使用clrscr();和gotoxy();在一些编译器中?

Why I can''t use the clrscr(); and gotoxy(); in some compilers?

推荐答案


为什么我不能使用clrscr();和gotoxy();在一些编译器?
Why I can''t use the clrscr(); and gotoxy(); in some compilers?



有些函数可以在某些编译器中使用但在其他编译器中没有。


说例子: - 函数''void,clrscr()等不在ANSI C ++中,而turbo c ++支持它。


现在说

_setcursortype(_NORMALCURSOR);

此功能在早期版本中不可用Turbo C(如2.0) ,但是在一些后来的版本中,我想..


现在这里...................

现在这个clrscr()在#include< conio.h>下声明。

现在,如果您正在使用GCC,那么它不包含C库,它只使用操作系统附带的库(包括标题)。

即这些函数是编译器以及依赖于操作系统的函数,即使在同一编译器的版本中它也会发生变化。

希望它清除你的怀疑......


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...


是conio.h包含在所有编译器中?
Is conio.h included in all compilers?



conio.h是否包含在所有编译器中?
Is conio.h included in all compilers?



简单回答否.......

Simple answer No.......


这篇关于CLRSCR();和GOTOXY();的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆