| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 435 人关注过本帖
标题:QBASIC程序用VB怎么实现
只看楼主 加入收藏
vipnemo
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2006-5-9
收藏
 问题点数:0 回复次数:0 
QBASIC程序用VB怎么实现
(810 PRINT "m,n,k"
815 INPUT m, n, k
820 DIM z(m), p(n), c(m), e(n), f(n)
830 DATA 10,0,0,0,0,0,303.3,303.3,303.3,-303.3
840 FOR i = 1 TO m
850 READ c(i), d(i)
860 NEXT i
870 FOR i = 1 TO n
880 READ e(i), f(i)
890 NEXT i
900 PRINT TAB(2); "w"; TAB(14); "logw"; TAB(24); "a"; TAB(37); "y"; TAB(65); "a-w"
910 PRINT TAB(68); "o"
920 PRINT TAB(49); " "
930 FOR i = 1 TO 29
940 j = i - 3
950 w = 1.5 ^ j
960 a1 = 1: Y1 = 0
970 FOR j = 1 TO m
980 a1 = a1 * SQR(c(j) * c(j) + (w + d(j)) * (w + d(j)))
990 IF c(j) = 0 THEN GOTO 1020
1000 Y1 = Y1 + ATN((w + d(j)) / c(j))
1010 GOTO 1030
1020 Y1 = Y1 + 3.141592 / 2
1030 NEXT j
1040 a2 = 1: Y2 = 0
1050 FOR j = 1 TO n
1060 a2 = a2 * SQR(e(j) * e(j) + (w + f(j)) * (w + f(j)))
1070 IF e(j) = 0 THEN GOTO 1100
1080 Y2 = Y2 + ATN((w + f(j)) / e(j))
1090 GOTO 1110
1100 Y2 = Y2 + 3.141592 / 2
1110 NEXT j
1120 a = k * a1 / a2: y = Y1 - Y2
1130 l2 = 20 * LOG(a) / LOG(10)
1140 l1 = l2 / (20 * LOG(1.5) / LOG(10))
1150 X2 = y / 3.141592 * 180
1160 w1 = LOG(w) / LOG(10)
1170 PRINT w; TAB(14); w1; TAB(23); l2; TAB(36); X2; TAB(68); "1"
1180 PRINT TAB(68); l1
1190 NEXT i
1200 END )大虾帮下忙
搜索更多相关主题的帖子: QBASIC 
2006-05-09 17:38
快速回复:QBASIC程序用VB怎么实现
数据加载中...
 
   



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

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