?? scanf.c
字號:
#include <stdarg.h>
#include <stdio.h>
#include <_const.h>
#include "_stdio.h"
static char c;
static char _geti(void)
{
char v;
if (c)
{
v = c;
c = 0;
}
else
v = getchar();
return v;
}
static void _ungeti(char v)
{
c = v;
}
int scanf(CONST char *fmt, ...)
{
va_list va;
int n;
c = 0;
va_start(va, fmt);
n = _scanf(_geti, _ungeti, fmt, va);
va_end(va);
return n;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -