?? mark.c
字號:
/**************************************************************************
*
* ROUTINE
* mark
*
* FUNCTION
*
* display prompts to indicate processing
* (output to standard error)
*
* SYNOPSIS
* subroutine mark (type)
*
* formal
*
* data I/O
* name type type function
* -------------------------------------------------------------------
* type int i 0 - display a 'pump' (rotating bar)
* 1 - display a row of dots
*
***************************************************************************
*
* DESCRIPTION
*
* This routine creates either a rotating bar or a row of dots,
* depending on what is specified, while code is executing.
*
***************************************************************************
*
* CALLED BY
*
* celp
*
* CALLS
*
*
***************************************************************************
*
* REFERENCES
*
*
**************************************************************************/
#include <stdio.h>
mark(type)
int type;
{
static int i;
static char chr[] = "/-\\|";
if (type)
{
fprintf(stderr,"%c",'.');
}
else
{
fprintf(stderr,"%c\b",chr[i++]);
if (i > 3) i = 0;
}
fflush(stderr);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -