爱问知识人 爱问教育 医院库

c 清屏语句是?

首页

c++清屏语句是?


        

提交回答
好评回答
  • 2008-06-01 16:31:00
      给你一个变态的方法     #include   <stdio。h>     system("cls");     变态吧?#include   <iostream>     #include   <cstdlib>         using   namespace   std;         int   main()     //   清屏     {     for   (int   i=0;   i<1000;   ++i)     cout   <<   i;         system("cls");     return   0;     }函数名:   clrscr                           <conio。
      h> 功 能: 清除文本模式窗口 用 法: void clrscr(void) 函数名: cleardevice 功 能: 清除图形屏幕 用 法: void far cleardevice(void)举个例子吧。
       #include<stdio。h> #include <conio。h> int main(void) { int i; clrscr(); for (i = 0; i < 20; i++) printf("%d\r\n", i); printf("\r\nPress any key to clear screen"); getch(); clrscr(); printf("The screen has been cleared!"); getch(); return 0; } 至于#include<conio。
      h>是放在#include<stdio。h>前还是后,无所谓的,习惯是之后。

    y***

    2008-06-01 16:31:00

类似问题

换一换
  • 摄影摄像 相关知识

  • 吃喝玩乐
  • 娱乐休闲

相关推荐

正在加载...
最新问答 推荐信息 热门专题 热点推荐
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):