k8s stio_致命错误:stio.h:C中没有这样的文件或目录
k8s stiostio.h is not a valid header file in C programming language, when you write the program, sometimes, we may forget to write the header file name correctly - in that case such fatal error is occ
k8s stio
stio.h is not a valid header file in C programming language, when you write the program, sometimes, we may forget to write the header file name correctly - in that case such fatal error is occurred.
stio.h在C编程语言中不是有效的头文件,有时在编写程序时,我们可能会忘记正确地写头文件名-在这种情况下,会发生致命错误。
Example:
例:
#include <stio.h>
int main(void){
printf("Hello world");
return 0;
}
Output
输出量
prog.c:1:18: fatal error: stio.h: No such file or directory
#include <stio.h>
^
compilation terminated.
How to fix?
怎么修?
See the header fie inclusion section, I wrote #include <stio.h> instead of #include <stdio.h>, to fix this or such errors, we should use correct header file names.
请参阅头文件fie包含部分,我写了#include <stio.h>而不是#include <stdio.h>来解决此错误,我们应该使用正确的头文件名。
Correct code:
正确的代码:
#include <stdio.h>
int main(void){
printf("Hello world");
return 0;
}
Output
输出量
Hello world
翻译自: https://www.includehelp.com/c-programs/fatal-error-stio.h-no-such-file-or-directory-error-in-c.aspx
k8s stio
更多推荐
所有评论(0)