C程序编译后按F9显示错误为Uable to open include file 'STDIO.H'如何解决

来源:百度知道 编辑:UC知道 时间:2024/06/22 20:53:48

在option\directories下面,把各个文件夹都设成当前tc的目录下

查看一下你的C程序文件夹下,是否是这个头文件。

编译程序找不到该包含文件,可能是由于一个#INCLUDE文件包含他本身而引起的,也可能是根目录下的CONFIG.SYS中没有设置能同时打开的文件个数(FILES=20)

"stdio.h"是c编译器的一个默认的头文件。出现这种情况,可能是下载的编译器的问题。如果你用的是turbo c的话,你可以打开tc目录里的include子目录的看看有没有这个文件“stdio.h”如果没有就是这个问题了,你可以自己写入,或者重下载一个编译器。
“stdio.h”的具体内容如下:

/* stdio.h

Definitions for stream input/output.

Copyright (c) Borland International 1987,1988
All Rights Reserved.
*/
#if __STDC__
#define _Cdecl
#else
#define _Cdecl cdecl
#endif

#if !defined(__STDIO_DEF_)
#define __STDIO_DEF_

#ifndef _SIZE_T
#define _SIZE_T
typedef unsigned size_t;
#endif
#ifndef NULL
# if defined(__TINY__) || defined(__SMALL__) || defined(__MEDIUM__)
# define NULL 0
# else
# define NULL 0L
# endif
#endif

#if !defined(