rstring.c
来自「This is code tutorial for image processi」· C语言 代码 · 共 58 行
C
58 行
/*****************************************************
*
* file d:\cips\rstring.c
*
* Functions: This file contains
* clear_buffer
* long_clear_buffer
* my_clear_text_screen
*
* Purpose: This function reads a string of input
* from the keyboard.
*
*******************************************************/
#include "cips.h"
clear_buffer(string)
char string[];
{
int i;
for(i=0; i<MAX_NAME_LENGTH; i++)
string[i] = ' ';
}
long_clear_buffer(string)
char string[];
{
int i;
for(i=0; i<300; i++)
string[i] = ' ';
}
/*************************************************
*
* my_clear_text_screen()
*
* This calls Microsoft C functions to clear
* the text screen and set a blue background
* with gray text.
*
**************************************************/
my_clear_text_screen()
{
_setvideomode(_TEXTC80);/* MSC 6.0 statements */
_setbkcolor(1);
_settextcolor(7);
_clearscreen(_GCLEARSCREEN);
} /* ends clear_text_screen */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?