腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
fopen_s
未在ubuntu下解决
c++
、
ubuntu
、
fopen
、
readfile
我想打开文件,所以我在ubuntu下使用
fopen_s
函数。虽然我在这里读取的#include <stdio.h>是,但get错误函数没有在作用域中声明。请帮助我,我做错了什么,以及如何让它运行?FILE *fp;if (fp == NULL){ cout << "cannot open " << strFilename.c_str
浏览 3
提问于2015-06-28
得票数 4
回答已采纳
1
回答
用C编写文件的安全和可移植的方法
c
我已经看到fopen()被废弃了,推荐使用
fopen_s
()代替它。但是有许多文章概述了
Linux
中
fopen_s
()的问题。一些教程只是避免提到这个问题,并说明了如何使用这两个功能。return 0; fclose( filePointer ); } 由于
fopen_s
在
Linux
中有粗略的采用,如果可能的话,我想避免它。
浏览 0
提问于2023-01-02
得票数 -2
回答已采纳
1
回答
C和SDL与
fopen_s
的问题
c
谢谢
fopen_s
(gState->readData, "PlatformsLevel1
浏览 3
提问于2016-03-01
得票数 0
回答已采纳
1
回答
按照Visual的建议,使用fopen代替
fopen_s
的错误是什么?
c++
、
opengl
、
fopen
Consider using
fopen_s
instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.即使我试图将其改为
fopen_s
,也会出现更多错误。
浏览 9
提问于2017-04-01
得票数 1
1
回答
fread不是从文件的开头开始的
c
、
file-io
、
stream
、
fread
char* argv[]) { char* inname; if ( (
fopen_s
浏览 3
提问于2020-01-29
得票数 1
回答已采纳
1
回答
如何将字符数组传递给
fopen_s
c
、
fopen
void) int i; FILE * src; fgets(name,20,stdin);
fopen_s
(&des,name,"wb"); int readcnt; if (src通常使用
fopen_s
(&des,&quo
浏览 19
提问于2018-12-11
得票数 1
2
回答
使用函数
fopen_s
(.) != NULL试图检查文件是否存在时,Visual代码崩溃
c
、
visual-studio-2010
、
fopen
我读过关于
fopen_s
的文章,如果文件不存在,它会抛出一个空指针。所以我编码: printf("Error! File Not Found!!如果您需要完整的代码:if((
fopen_s
浏览 9
提问于2014-02-08
得票数 0
回答已采纳
1
回答
如何构建sqlcipher?
c
、
sqlite
、
mingw
、
linker-errors
function 'sqlcipher_cipher_profile': if(
fopen_s
(&f, destination, "a") !
浏览 3
提问于2018-10-07
得票数 1
6
回答
有没有办法和GCC一起使用
fopen_s
(),或者至少创建一个关于它的#定义?
c
、
gcc
、
visual-c++
、
fopen
MSVC编译器指出fopen()已弃用,并建议使用
fopen_s
()。对#define有什么想法吗?
浏览 3
提问于2009-10-03
得票数 20
回答已采纳
1
回答
visual studio 2015错误中的C代码
c
、
visual-studio-2015
、
compiler-errors
mqrka[20];}; FILE *fp; fp =
fopen_s
printf_s("Количество: "); scanf_s("%f", &p->kol); fp =
fopen_s
= getchar(); getchar(); } while (c ==
浏览 2
提问于2016-12-10
得票数 0
回答已采纳
1
回答
C++中VS2013文件打开错误
c
#include <stdio.h> char fname[] = "17_1.txt"; if ((f =
fopen_s
(f
浏览 0
提问于2015-02-09
得票数 0
1
回答
用C语言读写文件
c
、
file
='q') int num; fptr =
fopen_s
; if (fptr == NULL) {
浏览 0
提问于2018-10-30
得票数 1
1
回答
编译‘
fopen_s
’时出错,未在此作用域中声明
c++
、
visual-studio
、
codeblocks
、
dev-c++
cout << "\nEnter char: "; if (c == 101) FILE* f;
fopen_s
浏览 213
提问于2021-02-09
得票数 1
3
回答
当试图写入文件时,fprintf不工作。
c
、
io
#include<stdlib.h>{ fPointer =
fopen_s
(&fPointer,"C:\\asd.txt","
浏览 13
提问于2020-02-22
得票数 3
回答已采纳
1
回答
C错误文件'f':'errno_t‘与’C2040 *‘的间接地址级别不同
c
name: ");getchar(); FILE *f; errno_t f =
fopen_s
浏览 23
提问于2016-07-22
得票数 0
回答已采纳
1
回答
在Visual中写入文件
c
、
visual-studio-2015
int64 End; unsigned long *Buffer_rx; errno_t err =
fopen_s
fp)perror("
fopen_s
"); if (err !
浏览 2
提问于2015-12-07
得票数 0
回答已采纳
10
回答
fopen已弃用警告
visual-c++
、
fopen
、
deprecated
Consider using
fopen_s
instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE.
浏览 144
提问于2008-08-18
得票数 70
回答已采纳
3
回答
C中的文件写入问题
c
、
windows
我在c应用程序中写入日志文件,写入该文件的方法是fprintf(fMainFile, "SomeText
浏览 3
提问于2010-06-23
得票数 1
回答已采纳
1
回答
为什么
fopen_s
在打开文件读取时返回EEXIST (errno 17)
c
、
fopen
、
c11
、
tr24731
当我执行
fopen_s
(&fid, FILE_NAME, "r")时,fid为null,errno为17。 当我试图打开一个读取文件时,怎么可能会出现EEXIST错误呢?
浏览 3
提问于2014-07-15
得票数 1
1
回答
有关将2D整数数组写入和读取到文本文件的问题
c
、
matrix
、
cmd
input_matrix(int matrix[ROW][COL], FILE*); {int i, j;fp =
fopen_s
input return 0;{ fp =
fopen_s
浏览 3
提问于2021-04-21
得票数 1
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Linux DNS 查询剖析 Linux 中国
Manjaro Linux 22.0 发布|Linux 中国
Alpine Linux 3.18 发布|Linux 中国
Linux基础(3)linux命令3
linux高级课程-在Linux中编程
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
即时通信 IM
活动推荐
运营活动
广告
关闭
领券