如何用c创建大文件? [英] How to create large files with c?

查看:55
本文介绍了如何用c创建大文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,所有


我的经理告诉我创建一个2GB的大文件


第一个1GB填充Hello ;


和secod 1GB充满了World


很抱歉说我不知道​​怎么做优雅的方式。


有人知道吗?


感谢您的回答!

Hello, all

My manager told me to create a large file of 2GB

The first 1GB is filled with "Hello"

and the secod 1GB is filled with "World"

Sorry to say that I don''t know how to do that in an elegant way.

Does anybody know how?

Thanks for answering!

推荐答案

在文章< 11 ********************* @ e34g2000pro.googlegroups中。 com>,

loudking< lo ****** @ gmail.comwrote:
In article <11*********************@e34g2000pro.googlegroups. com>,
loudking <lo******@gmail.comwrote:

>我的经理告诉我创建一个2GB的大文件

第一个1GB充满了Hello

而secod 1GB充满了World

很抱歉,我不知道如何以优雅的方式做到这一点。
>My manager told me to create a large file of 2GB

The first 1GB is filled with "Hello"

and the secod 1GB is filled with "World"

Sorry to say that I don''t know how to do that in an elegant way.



我不认为这里有很多人会浪费时间告诉

你怎么做这么明显的傻事(不是提到虚构的任务。


如果你需要我们的帮助,试着告诉我们你真正想做什么。


- Richard

-

在一些字母表中需要考虑多达32个字符

- X3.4,1963。

I don''t think many people here will want to waste their time telling
you how to do such an obviously stupid (not to mention fictional) task.

If you want our help, try telling us what you really want to do.

-- Richard
--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.


loudking写道:
loudking wrote:

你好,所有


我的经理告诉我要创建一个2GB的大文件


第一个1GB充满了你好


和secod 1GB充满了World
Hello, all

My manager told me to create a large file of 2GB

The first 1GB is filled with "Hello"

and the secod 1GB is filled with "World"



你有一个非常奇怪的经理。

You have a very strange manager.


很抱歉,我不知道如何以优雅的方式做到这一点。
Sorry to say that I don''t know how to do that in an elegant way.



不优雅,任务不要求优雅,喷出你好

1GB / sizeof(你好)次,然后是世界。 1GB / sizeof(世界)次。

他是否碰巧注意到你不能确切地使用

" hello"或世界到1GB?


-

Ian Collins。

The be inelegant, the task doesn''t ask for elegance, spew out "hello"
1GB/sizeof("hello") times followed by "world" 1GB/sizeof("world") times.
Did he happen to note that you can''t fit an exact number of either
"hello" or "world" into 1GB?

--
Ian Collins.


loudking< lo *** ***@gmail.com写:
loudking <lo******@gmail.comwrites:

您好,所有


我的经理告诉我创建一个2GB的大文件
Hello, all

My manager told me to create a large file of 2GB



你工作的是 www.large-useless-files-r-us.com?听起来像

课程作业。

And you work for www.large-useless-files-r-us.com? Sounds like a
coursework assignment.


第一个1GB充满了Hello

和secod 1GB充满了World


很抱歉说我我不知道如何以优雅的方式做到这一点。
The first 1GB is filled with "Hello"
and the secod 1GB is filled with "World"

Sorry to say that I don''t know how to do that in an elegant way.



您的客户昨天需要它。只需使用你系统的工具。


-

Ben。

You customer needs it yesterday. Just use your system''s tools.

--
Ben.


这篇关于如何用c创建大文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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