fwite函数具体怎么用(想读取二进制文件并写入一个数组)

[复制链接]
查看11 | 回复1 | 2016-12-3 00:17:22 | 显示全部楼层 |阅读模式
FILE *fp=fopen("示例数据.txt","wb");
if(fp==NULL)
return;
char *list;
fwrite(list , sizeof(char),1,fp );
CString str;
str.Format(_T("The final circle's aera is:"),strlen(list));
AfxMessageBox(str);
UpdateData(FALSE);

回复

使用道具 举报

千问 | 2016-12-3 00:17:22 | 显示全部楼层
// for_testing_C.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"//屏蔽4996警告:××被声明为否决的。不建议使用这个屏蔽,而建议使用**_s#pragma warning(disable: 4996)#include #include #include using namespace std;#ifdef _UNICODE #undef _UNICODE #endif //unicode也不太理解。为了测试_TCHAR用的#ifdef _UNICODE int _tmain(int...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行