fopen(),string,c-str(),无法打开文件,源码如下。有劳各位大神看看

hellojjq hellojjq 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
void mfcc(string AudioName)
{

FILE *sourcefile;

ofstream outfile1("yuanshi.txt");
//cout<<AudioName<<endl; 此时可以输出 yuanshi.txt


sourcefile=fopen(AudioName.c_str (),"rb");
if(sourcefile==NULL)
{
cout<<"Can't open yuanshi.txt"<<endl;
exit(0);
}
}
int main()
{
string strAu1="yuanshi.txt";
cout<<strAu1<<endl;
mfcc(strAu1);
return 1;
}
...全文

相关推荐

评论 26
收藏 已收藏
分享
返回顶部
hellojjq
其它技术问题 3,881 成员 9,044 内容