如何在C ++中使用fwrite() [英] how to use the fwrite () in C ++

查看:97
本文介绍了如何在C ++中使用fwrite()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

你能帮我解决一下如何在C ++中使用fwrite()

Hi all,
Could you help me how to use the fwrite( ) in C ++

推荐答案

pal< ja ******** @ gmail.comwrites:
pal <ja********@gmail.comwrites:

你能帮我解决一下如何在C ++ $ b中使用fwrite()吗? $ b
Could you help me how to use the fwrite( ) in C ++



这与C完全相同。


-

__Pascal Bourguignon __

It''s exactly the same as in C.

--
__Pascal Bourguignon__


8月14日,10:28 * am,pal< jayapal ... @ gmail.comwrote:
On Aug 14, 10:28*am, pal <jayapal...@gmail.comwrote:

你能帮我解决一下如何在C ++中使用fwrite()
Could you help me how to use the fwrite( ) in C ++



要么更具体,要么谷歌搜索它。我在搜索结果的第一页上找到了这段代码

样本:

http://msdn.microsoft.com/en-us/libr...cs(VS.71).aspx


干杯! --M

Either be more specific or try Googling for it. I found this code
sample on the first page of search results:

http://msdn.microsoft.com/en-us/libr...cs(VS.71).aspx

Cheers! --M


Pascal J. Bourguignon写道:
Pascal J. Bourguignon wrote:

pal< ja ****** **@gmail.comwrites:
pal <ja********@gmail.comwrites:

>你能帮我解决一下如何在C ++
中使用fwrite()
>Could you help me how to use the fwrite( ) in C ++



它与C中的完全相同。


It''s exactly the same as in C.



不*精确*,至少不是如果您的编译器严格遵守

C ++标准:您需要使用std :: fwrite(),或者使用using std :: fwrite;将其从命名空间中拉出来。

。 br />

但是否则,它的作用就像在C.

Not *exactly*, at least not if your compiler strictly adheres to the
C++ standard: You need to either use std::fwrite(), or pull it out of
the namespace with a "using std::fwrite;".

But otherwise yes, it works like in C.


这篇关于如何在C ++中使用fwrite()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆