⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fun-file.c

📁 linux下的C语言开发
💻 C
字号:
/*-*//******************************************************** * Question:						* *	The following program can't open the file no	* *	matter what name we give it. Why?		* ********************************************************//*+*/#include <stdio.h>#include <stdlib.h>	int main(){    char            name[100];  /* name of the file to use  */    FILE           *in_file;    /* file for input */    printf("Name? ");    fgets(name, sizeof(name), stdin);    in_file = fopen(name, "r");    if (in_file == NULL) {        fprintf(stderr, "Could not open file\n");        exit(8);    }    printf("File found\n");    fclose(in_file);    return (0);}

⌨️ 快捷键说明

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