| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 560 人关注过本帖
标题:[菜鸟求助]怎样将大量数据初始化到数组
只看楼主 加入收藏
litianzzk
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2006-3-9
收藏
 问题点数:0 回复次数:1 
[菜鸟求助]怎样将大量数据初始化到数组

我想将下面的数据初始化到一个类型为 byte 的数组 a() 中,有什么比较简单的方法吗?

谢谢了。

0, 17, 35, 50, 70, 87, 101, 116, 140, 157, 175, 190, 202, 219, 233, 248,
16, 1, 51, 34, 86, 71, 117, 100, 156, 141, 191, 174, 218, 203, 249, 232,
33, 48, 2, 19, 103, 118, 68, 85, 173, 188, 142, 159, 235, 250, 200, 217,
49, 32, 18, 3, 119, 102, 84, 69, 189, 172, 158, 143, 251, 234, 216, 201,
66, 83, 97, 112, 4, 21, 39, 54, 206, 223, 237, 252, 136, 153, 171, 186,
82, 67, 113, 96, 20, 5, 55, 38, 222, 207, 253, 236, 152, 137, 187, 170,
99, 114, 64, 81, 37, 52, 6, 23, 239, 254, 204, 221, 169, 184, 138, 155,
115, 98, 80, 65, 53, 36, 22, 7, 255, 238, 220, 205, 185, 168, 154, 139,
132, 149, 167, 182, 194, 211, 225, 240, 8, 25, 43, 58, 78, 95, 109, 124,
148, 133, 183, 166, 210, 195, 241, 224, 24, 9, 59, 42, 94, 79, 125, 108,
165, 180, 134, 151, 227, 242, 192, 209, 41, 56, 10, 27, 111, 126, 76, 93,
181, 164, 150, 135, 243, 226, 208, 193, 57, 40, 26, 11, 127, 110, 92, 77,
198, 215, 229, 244, 128, 145, 163, 178, 74, 91, 105, 120, 12, 29, 47, 62,
214, 199, 245, 228, 144, 129, 179, 162, 90, 75, 121, 104, 28, 13, 63, 46,
231, 246, 196, 213, 161, 176, 130, 147, 107, 122, 72, 89, 45, 60, 14, 31,
247, 230, 212, 197, 177, 160, 146, 131, 123, 106, 88, 73, 61, 44, 30, 15,
0, 137, 18, 155, 36, 173, 54, 191, 72, 193, 90, 211, 108, 229, 126, 247,
129, 8, 147, 26, 165, 44, 183, 62, 201, 64, 219, 82, 237, 100, 255, 118,
2, 139, 16, 153, 38, 175, 52, 189, 74, 195, 88, 209, 110, 231, 124, 245,
131, 10, 145, 24, 167, 46, 181, 60, 203, 66, 217, 80, 239, 102, 253, 116,
4, 141, 22, 159, 32, 169, 50, 187, 76, 197, 94, 215, 104, 225, 122, 243,
133, 12, 151, 30, 161, 40, 179, 58, 205, 68, 223, 86, 233, 96, 251, 114,
6, 143, 20, 157, 34, 171, 48, 185, 78, 199, 92, 213, 106, 227, 120, 241,
135, 14, 149, 28, 163, 42, 177, 56, 207, 70, 221, 84, 235, 98, 249, 112,
8, 129, 26, 147, 44, 165, 62, 183, 64, 201, 82, 219, 100, 237, 118, 255,
137, 0, 155, 18, 173, 36, 191, 54, 193, 72, 211, 90, 229, 108, 247, 126,
10, 131, 24, 145, 46, 167, 60, 181, 66, 203, 80, 217, 102, 239, 116, 253,
139, 2, 153, 16, 175, 38, 189, 52, 195, 74, 209, 88, 231, 110, 245, 124,
12, 133, 30, 151, 40, 161, 58, 179, 68, 205, 86, 223, 96, 233, 114, 251,
141, 4, 159, 22, 169, 32, 187, 50, 197, 76, 215, 94, 225, 104, 243, 122,
14, 135, 28, 149, 42, 163, 56, 177, 70, 207, 84, 221, 98, 235, 112, 249,
143, 6, 157, 20, 171, 34, 185, 48, 199, 78, 213, 92, 227, 106, 241, 120

搜索更多相关主题的帖子: 数据 STRONG byte 
2006-03-09 13:30
辉少
Rank: 1
等 级:新手上路
威 望:2
帖 子:147
专家分:7
注 册:2005-8-25
收藏
得分:0 
把其放在文本文件中
定义数祖dim a(10000) as byte
加入代码:
open "位置" for input as #1
while not eof(1)
i=i+1
input #1,a(i)
wend

辉少QQ:469781880 博客:http:///bbs/boke.asp?25189.index.html
2006-03-09 20:27
快速回复:[菜鸟求助]怎样将大量数据初始化到数组
数据加载中...
 
   



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

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