
3条回答 默认 最新
LYSnowy 2022-01-30 14:52关注#include <stdio.h> int main() { FILE* f = fopen("D:/document/test.txt", "w+"); char s[] = { "12345" }; if (f == NULL) { printf("open error!\n"); return 0; } fprintf(f, "%s", s); fclose(f); return 0; }
路径的错误吧本回答被题主选为最佳回答 , 对您是否有帮助呢?评论 打赏 举报解决 1无用