如何将字符串转换为固定长度的位= 64 [英] how to convert string to bits of fixed length =64
本文介绍了如何将字符串转换为固定长度的位= 64的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的意思是当我写任何字符串
i得到输出为0'和1'的固定长度等于64
我怎么能这样做使用C#?
i意味着当我写hello时,我得到任何数组类型的0'和1'长度为64的流
当我写hi时,我得到任意数组类型的0'和1'长度为64的流
i希望获得固定长度的位= 64忽略输入字符串的长度,该字符串可能需要一个单词或段落
i mean when i write any string
i get the out put as 0''s and 1''s with fixed length equal 64
how i can do that using C#?
i mean when i write "hello" i get a stream of 0''s and 1''s of length 64 in any array type
when i write "hi" i get a stream of 0''s and 1''s of length 64 in any array type
i want to get fixed length of bits =64 ignoring the length of input string which may take one word or a paragraph
推荐答案
我是不是转换的粉丝,但它有 Convert.ToString(Int32,Int32) [ ^ ]
I''m not a fan of Convert, but it has Convert.ToString (Int32, Int32)[^]
这篇关于如何将字符串转换为固定长度的位= 64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文