use imagination0

Posted luwudang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了use imagination0相关的知识,希望对你有一定的参考价值。


技术分享图片
 1 #include <stdio.h>
 2 #include <stdlib.h>
 3 
 4 int main(void)
 5 {
 6     FILE *fp;
 7     /* char arr[100]; */
 8 
 9     //write sth to T.txt
10     fp = fopen("T.txt","w");
11     if(fp == NULL)
12     {
13         puts("File open failed.");
14         exit(EXIT_FAILURE);
15     }
16     fprintf(fp,"%s","How are you doing?
");
17     fclose(fp);
18 
19     //output T.txt
20     fp = fopen("T.txt","r");
21     if(fp == NULL)
22     {
23         puts("File open failed.");
24         exit(EXIT_FAILURE);
25     }
26     /* if(fgets(arr,100,fp) != NULL)
27         puts(arr); */
28     for(;;)
29     {
30         if(feof(fp))
31             break;
32         putchar(getc(fp));
33     }
34     fclose(fp);
35             
36     return 0;
37 }
View Code

 

 

以上是关于use imagination0的主要内容,如果未能解决你的问题,请参考以下文章

连接MySQL出现错误:ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)(代码片段

[React Testing] Use Generated Data in Tests with tests-data-bot to Improve Test Maintainability(代码片段

七个办法只有一个有效:200 PORT command successful. Consider using PASV.425 Failed to establish connection.(代码片段

[TIA PORTAL][CONVERT] Convert Char Array to DInt...DInt to Char Array..Useful and easy function(代码片段

[Grid Layout] Use auto-fill and auto-fit if the number of repeated grid tracks is not to be def(代码片段

flutter解决 dart:html 只支持 flutter_web 其他平台编译报错 Avoid using web-only libraries outside Flutter web(代码片段