腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
3
回答
Windows
std
::
ifstream
::
open
()问题
c++
、
path
、
debugging
、
ifstream
我知道关于
std
::
ifstream
::
open
()有一些问题,但是答案并没有解决我的问题。问题是:
std
::
ifstream
::
open
()似乎不再工作了,因为我已经从Dev-C++切换到代码::块(我一直在使用相同的MinGW-GCC后端),以及从Windows到Vista。我的项目链接到一个静态库,该库#包括,然后调用静态库中定义的功能,然后调用
std
::
ifstream
::
open
() (这次是直接的)。/Test
浏览 5
提问于2009-07-04
得票数 1
回答已采纳
4
回答
编译C++代码时出错(无效转换)
c++
、
file
、
file-io
、
compiler-errors
、
ifstream
它以文件名为参数,尝试打开文件,如果文件打开,则返回文件指针,否则返回#include <fstream>{{
浏览 0
提问于2013-09-25
得票数 1
回答已采纳
1
回答
使用折叠表达式读取csv文件
c++
、
c++17
Is>{ (ss >> ... >>
std
::get<Is>(empty));<em
浏览 0
提问于2022-10-17
得票数 0
3
回答
当文件有足够的数据c++时,无法从文件中读取足够的数据
c++
、
ifstream
size_t readSize=629312;size_t s=_rawImageFile.tellg();为了找到解决方案,我将所有代码放入一个函数中,如下所示:
ifstream
t_rawImageFile; t_rawImageFile.
open
(rawImageFileName,
std
::
ifstream
::in ||
s
浏览 2
提问于2013-05-31
得票数 0
回答已采纳
3
回答
std
::
ifstream
::
open
()不工作
c++
、
stl
、
iostream
这就是我目前正在做的事情:stream.
open
("rules.ini"); {} // read file contents
浏览 2
提问于2008-12-10
得票数 1
回答已采纳
1
回答
ifstream
.
open
()不打开文件
c++
、
file
、
istream
我当前的问题是,我试图使用
ifstream
.
open
(),而它只是不打开文件。这是由getline(
ifstream
,line)确认的;在第一个调用时返回false。下面是当前代码的副本粘贴:{ m_ifs.
open
("C
浏览 1
提问于2016-08-29
得票数 2
1
回答
类成员初始化器以使用错误检查初始化
ifstream
?
c++
、
c++11
类的变量是
std
::string和
std
::
ifstream
。class A{
std
::
ifstream
filestream = .... ....class A{
std
::
if
浏览 3
提问于2016-10-04
得票数 1
回答已采纳
1
回答
尝试使用fstream和sstream打开和读取文件
c++
、
string
、
runtime-error
、
fstream
、
file-handling
::string Code; File.exceptions(
std
::
ifstream
::failbit |
std
::
ifstream
::badbit); { File.
open
(path);
std
::stringstream Stream;::
i
浏览 28
提问于2020-10-28
得票数 0
1
回答
无法在C++窗口中打开.txt文件
c++
、
windows
、
file
、
debugging
、
memory
我无法使用
std
::
ifstream
file和file.
open
()打开.txt文件。.exe文件所在的文件夹-\program_folder开始),但使用完整路径(C:\Users\Rafael\Desktop\C++\program_folder\inputs\test.txt)也
不起作用
::vector<
std
::string> inputs; int a; int b;
浏览 0
提问于2020-09-17
得票数 1
2
回答
如果流因某种原因关闭了?
c++
::
ifstream
*data_stream;
std
::
ifstream
*meta_stream; FileStore(
std
::
ifstream
*data,
std
::vector<
std
::
ifstream
*> indexes, <e
浏览 3
提问于2017-08-18
得票数 1
6
回答
在C++中逐字读取文件
c++
void readFile( )
ifstream
file; string word; char x ;
浏览 11
提问于2013-12-04
得票数 23
回答已采纳
1
回答
为什么我可以将一个
ifstream
文件放在一个if条件下?
c++
、
implicit-conversion
我发现这个方法可以打开要读取的文件:
std
::
ifstream
configFile(path,
std
::
ifstream
因为我还找到了以下检查文件是否打开的方法:
std
::
ifstream
configFile; configFile.
open
(path
浏览 0
提问于2019-09-06
得票数 4
回答已采纳
2
回答
无法使用
ifstream
::
open
打开html资源文件- Visual Studio 2013
c++
、
file-io
、
visual-studio-2013
std
::
ifstream
templateFile;当我提供完整路径时,上面的操作就会起作用我尝试将构建操作设置为content,但仍然
不起作用
。请帮帮忙。
浏览 3
提问于2015-07-17
得票数 1
3
回答
捕获打开的异常
c++
、
exception
、
io
#include <fstream>#include <iostream>
std
::ofstream fs; fs.
open
("/non-existing-root-file");
std
::cout<< e.what() <<
浏览 0
提问于2014-06-04
得票数 3
回答已采纳
4
回答
用于"cin“和”文件“的C++公共接口
c++
、
io
、
cin
、
istream
cin和文件输入是否有通用接口?prog [input-file]据我所知,它们都实现了istream。您如何设置它,以便我可以执行类似in >> var的操作,其中in是一个istream。
浏览 0
提问于2010-09-25
得票数 3
回答已采纳
2
回答
基于条件的Istream参考
c++
#include <iostream>#include <string> 我得到了这个错误,不知道为什么。_Traits>::basic_istream(
std
::basic_istream<_Elem,E0330 "
std
::b
浏览 2
提问于2017-12-16
得票数 0
回答已采纳
2
回答
ifstream
::is_
open
与
ifstream
::失败?
c++
、
ifstream
在C++中阅读Savitch的问题解决方案,
std
::
ifstream
::fail是一个示例,用于检查文件是否已正确打开(
ifstream
或ofstream)。正如我第一次看到的那样,我以前使用过
std
::
ifstream
::is_
open
来执行相同的检查。或者在任何一个尝试打开后被直接调用的情况下,这会不会产生实际的影响?
浏览 1
提问于2014-06-07
得票数 30
回答已采纳
4
回答
如果无法打开文件,则显示错误消息,C++
c++
、
fstream
片段: in_file_str.assign(istreambuf_iterator
浏览 3
提问于2010-11-03
得票数 3
回答已采纳
5
回答
将对
std
::
ifstream
的引用作为参数传递
c++
、
function
、
ifstream
我试图编写一个带有
ifstream
&参数的函数。void word_transform(
ifstream
& infile) infile("content.txt");} 输入'
ifstream
‘(又名'basic_
ifstream
')不提供呼叫操作员。
浏览 4
提问于2014-12-16
得票数 6
回答已采纳
1
回答
无法使用boost C++在ubuntu中使用完整路径打开文件
c++
、
ubuntu
、
boost
这是代码boost::filesystem::
ifstream
file ("main.cpp") ;{ { }} else
std
::cout << "Unable to <
浏览 3
提问于2014-06-13
得票数 0
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券