将数字转换为文字或艺术品 [英] Convert a number(s) into text or work of art

查看:92
本文介绍了将数字转换为文字或艺术品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道从哪里开始这个项目,我不想简单地将一组数字转换为数字的书面形式,我想将一组数字转换为书面形式文字,反之亦然.我希望能够获取一个文档并将其转换为一个数字或一组数字,并希望该程序能够以100%的精度重新创建该文档.如何将一个完整的文本与一个数字或一组数字相互转换?

I have no idea where to start with this project, I don''t want to simply convert a set of numbers over to the written equivalent of the number i want to take a set of numbers and convert the numbers into a written text and vice versa. I want to be able to take a document and convert it into a number or set of numbers and have the program be able to recreate the document with 100% accuracy. How do i convert a full bodied text to and from a number or set of numbers?

推荐答案

它变成一个数字或一组数字..."
我不确定您是否知道在计算机上内部存储或处理的任何内容.在计算机上处​​理的所有内容都表示为单个,元组甚至字节流.由于字节流可以视为域[0..255]中的有序数字集,因此,您需要打开的文档作为流(可能是BinaryReader),然后将其读入尺寸适当的字节数组中. br/> 有适合您的一组数字. (写回磁盘或内存同样有效)

我很确定那不是您的想法,但是由于您没有提出适当的要求,因此我为您提供了适合您问题的解决方案.如果您还想要其他东西,请完善您的问题.

干杯!


@SA :不要"打我太难了:)
" I want to be able to take a document and convert it into a number or set of numbers ... "
I''m not sure you know how anything that is stored or manipulated on a computer is handled internally. Anything processed on a computer is expressed as a single, a tuple or even a stream of bytes. Since a stream of bytes can be considered as an ordered set of numbers in the domain [0..255]all you need to to is open the document as a stream (BinaryReader maybe) and read it into an appropriately dimensioned byte array.
There''s your set of numbers for you. (Writing that back to disk or memory goes equally well)

I''m pretty sure that is not what you had in mind, but since you haven''t stated proper requirements I gave you a solution that fits your question. If you want something else please refine your question.

Cheers!


@SA: Dont'' hit me too hard :)


因为您正在考虑将数字转换为文本或艺术品"

要将文本转换为艺术品",您可以始终考虑 postscript [ ^ ]或 ^ ]甚至 XAML [ ^ ]

此处 [
如果您只想将文件中的数字显示为文本,则其他答案就足够了.

问候
Espen Harlinn
Since you are taking about "Convert a number(s) into text or work of art"

To convert text to a "Work of Art" you could always consider postscript[^] or Scalable Vector Graphics[^] or even XAML[^]

There are quite a number of similar options available here[^] if you look at the Vector graphics and 3D graphics sections.

If you just want to display numbers from a file as text, the other answers should suffice.

Regards
Espen Harlinn


我认为,没有人能弄清楚您要做什么.
突然,我猜到了:可能被称为"ASCII艺术"吗?!

有大量资料来源,请参见:
http://en.lmgtfy.com/?q=ascii+art+generator [ ^ ].

—SA
I think, nobody could figure out what are you trying to make.
All of a sudden, I get a guess: could in possibly be so called "ASCII Art"?!

There are good number of sources, see:
http://en.lmgtfy.com/?q=ascii+art+generator[^].

—SA


这篇关于将数字转换为文字或艺术品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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