vb怎样把矩阵写入文本文件?怎样读出来赋给一个新矩阵?

[复制链接]
查看11 | 回复4 | 2011-10-1 15:02:10 | 显示全部楼层 |阅读模式
dim s(1 to 5,1 to 5) as integerdim sLine as stringdim i as integer,j as integer'写入open "d:\test.txt" for output as #9for i=1 to 5sLine=""for j=1 to 5
sLine=sLine & s(i,j) & space(1)next jprint #9,sLinenext iclose #9'读取dim s(1 to 5,1 to 5) as integerdim sLine as string,strt() as string...
回复

使用道具 举报

千问 | 2011-10-1 15:02:10 | 显示全部楼层
提问者:匿名...
回复

使用道具 举报

千问 | 2011-10-1 15:02:10 | 显示全部楼层
SST = rs.RecordCountReDim AA(1 To 8, 1 To SST)
'将动态数组定义上下标Do While Not rs.EOFx = x + 1内容rs.MoveNextLoop...
回复

使用道具 举报

千问 | 2011-10-1 15:02:10 | 显示全部楼层
打酱油的...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行