printf.h

来自「实现了标准C语言库函数printf scanf功能」· C头文件 代码 · 共 40 行

H
40
字号
/**************标准C语言库函数的实现**********************、
/*
 * Printf.h
 * Copyright (c) 2008 ,WuRen
 * Date:2008-04-25
 * V1.00
*/

#ifndef _INC_PRINTF
#define	_INC_PRINTF

#ifndef _INC_STDIO
#ifndef __stdio_h
#include "stdio.h"
#endif
#endif

#ifndef	_INC_STDLIB
#ifndef __stdlib_h
#include "stdlib.h"
#endif
#endif

#ifndef _INC_STDARG
#ifndef __stdarg_h
#include "stdarg.h"
#endif
#endif
#define PrintfPuts	GUI_DispString
#define ScanfGets	GUI_GetString

void GUI_GetString(char *string);
extern void Printf(char *fmt,...);

char	ScanfInput[256];
#define Scanf(x,y)	ScanfGets(ScanfInput);sscanf(ScanfInput,(x),(y));



#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?