void CTest111Dlg::OnButton1()
{
// TODO: Add your control notification handler code here
char ch;
FILE *in ,*out;
in=fopen("D:\\a1.wav","rb");
out=fopen("D:\\a.txt","w");
while (!feof(in))
{
fread(&ch,1,1,in);
fwrite(&ch,1,1,out);
}
fclose(in);
fclose(out);
}可是我打开 a.txt 出现是乱吗?
我希望的是以 16 进制 显示,
各位大哥,我的程序还要怎么改写呢?
谢谢!
{
// TODO: Add your control notification handler code here
char ch;
FILE *in ,*out;
in=fopen("D:\\a1.wav","rb");
out=fopen("D:\\a.txt","w");
while (!feof(in))
{
fread(&ch,1,1,in);
fwrite(&ch,1,1,out);
}
fclose(in);
fclose(out);
}可是我打开 a.txt 出现是乱吗?
我希望的是以 16 进制 显示,
各位大哥,我的程序还要怎么改写呢?
谢谢!
解决方案 »
- 在MainFrame中怎么调用Onclose();
- Goto桌面搜索软件
- VC使用DAO350.dll出错
- 再发贴问个棘手的问题,对我来说实在比较难。分数不够再加,顶者有分!!!!!!!!!!!!!
- 关于CComObject的几个问题
- 如何实现在文件中内嵌一个二进制文件?
- 请问如何得到一个WAVE文件的SampleRate和Bitrate值,谢谢?
- BringWindowToTop 后怎么恢复?不让他在最顶层?
- VC++.NET的一个奇怪问题,能给出答案的,我给500分。。
- 帮我看看下面的代码有什么错误?熟悉低级音频api的请进
- 如何更改wave文的采样频率?
- 几道大学中操作系统的问题~~~~高分求解
这个代码要怎么写啊?
可以举个例子吗?
{
// TODO: Add your control notification handler code here
char ch[3];
char chr;
FILE *in ,*out;
in=fopen("D:\\a1.wav","rb");
out=fopen("D:\\a.txt","w");
while (!feof(in))
{
fread(&ch,4,1,in);
chr=ch[0]^3+ch[1]^2+ch[2]^1 +ch[3]^0;
fwrite(&chr,1,1,out);
} fclose(in); fclose(out);
}为什么这样出现的还是乱吗呢?
谢谢!
for(i=0;i<40;i++)
fread(&stu[i],sizeof(struct stu),1,fp);
for(i=0;i<40;i++)
fwrite(&stu[i],sizeof(struct stu),1,fp);