标题:如何将BUF2中的数据写到myshort中呢
只看楼主
lixang
Rank: 1
等 级:新手上路
帖 子:231
专家分:0
注 册:2006-7-15
 问题点数:0 回复次数:0 
如何将BUF2中的数据写到myshort中呢

.............
short myshort ;
char BUF2[2];
ifstream infile("a.txt",ios::binary);//a.txt内容是二进制的数据
infile.read(BUF2,2)
//BUF>>myshort;这个不行

//如何将BUF2中的数据写到myshort中呢?
要求不能使用string
搜索更多相关主题的帖子: myshort 数据 
2007-04-03 11:54



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-128861-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.125528 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved