c编程中的Clrscr()函数 [英] Clrscr() function in c programming
本文介绍了c编程中的Clrscr()函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的:
我想在c中创建自己的功能,其中的功能是清除屏幕我知道他们已经是预定义函数clrscr()但是我想让它自己可以任何人帮助我请。
谢谢
解决方案
这样的东西可行;
#include < stdlib.h >
#include < stdio.h >
void clr(){
system( cls);
}
int main( int argc, char * argv []){
printf( I将不会显示,因为屏幕将被清除!\\\\ n);
clr();
printf( Hello,world!\\\\ n);
return 0 ;
}
希望这会有所帮助,
Fredrik
< blockquote> https://www.google.com/search?q=gotoxy+turbo+c [ ^ ]。
Dear:
I want to create my own function in c which function is to clear the screen i know their is an already predefine function clrscr() but i want to make it own can anyone help me please.
Thanks
解决方案
Something like this would work;
#include <stdlib.h> #include <stdio.h> void clr() { system("cls"); } int main(int argc, char* argv[]) { printf("I won't show up because the screen will be cleared!\r\n"); clr(); printf("Hello, world!\r\n"); return 0; }
Hope this helps,
Fredrik
https://www.google.com/search?q=gotoxy+turbo+c[^].
这篇关于c编程中的Clrscr()函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文