ÓÃVBдһ¼òµ¥³ÌÐò¡£ - VB / »ù´¡Àà
ÊÔÓÃVB³ÌÐòÓïÑÔд³öÍêÕû³ÌÐò¶Î:ÇóS=1+3+5+7+¡¡+999µÄÖµ£¬ÔÚ´Ëлл»ØÌûµÄÅóÓÑÃÇ£¡
¹«Ê½£ºs=(1+999)*500/2 ±ðµÄ´úÂë»á×Ô¼ºÐ´ÁË°É
for i = 1 to 999 step 2
sum = sum + i
next i
msgbox sum
dim i as integer
dim S as integer
S=0
for i=0 to 500
S=S+(2*i-1)
next
rs+=sql.executeQuery("SELECT * from da_jnwjb WHERE tmh LIKE '"%+s[0]+"%' ");
rs+=sql.executeQuery("SELECT * from da_jnwjb WHERE tmh LIKE '"%+s[1]+"%' ");
rs+=sql.executeQuery("SELECT * from da_jnwjb WHERE tmh LIKE '"%+s[0]+s[1]+"%' ");
Private Sub Form_Load()
Show
Dim i As Integer
For i = 1 To 1000 Step 2
s = s + i
Next i
Print s
End Sub
VB code:
Private Sub Command1_Click()
Dim a As Long, c As Integer
Dim b As Integer: b = 1
While b <= 999
a = a + b
b = b + 2
Wend
MsgBox a
End Sub
Private Sub Command1_Click()
Dim a As Long, c As Integer
Dim b As Integer
b = 1
While b <= 999
a = a + b
b = b + 2
Wend
MsgBox a
End Sub
................
¾º
Ïà¹ØÎÊ´ð£º
ÏÖÔÚÎÒÏë¸ù¾ÝtreeviewÉÏÿ¸ö½ÚµãµÄȨÏÞ£¬Ã»ÓÐȨÏ޵Ľڵ㲻Äܱ»Ñ¡ÖУ¬¶øÇҳɻÒÉ«£¬ÔõôʵÏÖ£¬ÔÚÏߵȡ£¡£¡£
Õâ¸ö£¿¡£¡£¡£
òËÆû·¨¡£
ÊÔÊÔÄܲ»ÄܸÄijЩnodeµÄÑÕÉ«£¬¼Ç¼ÏÂÉϴεÄnodeclickÀïµÄnode¡£
Ï´εã»÷µÄÈç¹ ......
ÎÒÏë°ÑwordÁí´æΪxmlÖ®ºó£¬ÓÃvb¶ÁÈ¡Õâ¸öxmlµÄÄÚÈÝ£¬ÇëÎÊÈçºÎʵÏÖ£¿
dim f as integer
dim b() as byte
dim s as string
dim L as long
f=freefile()
open "abc.xml" for binary access read as #f
......
Êý¾Ý¿âÀïÓÐÒ»¸ö×ֶεÄÄÚÈÝÊǶþ½øÖÆ£¬Ôõô²ÅÄÜ°ÑÕâ¸ö¶þ½øÖƶÁ³öÀ´
ʹÓÃ×Ö½ÚÁ÷¶ÔÏó¿ÉÒÔʵÏÖ
ÀýÈçÏÖÔÚÊý¾Ý¿âÀïÓиö×ֶεÄÄÚÈÝÊÇ0x504B03040A0000000800407F263C3B02465390000000820000000A0000006273CECACCE22E7478 ......
ËÄÜ°ïÎÒ°ÑÏÂÃæÕâЩ´úÂë¸Ä³ÉVBÐÎʽµÄ£¬¶àлÁË£¬¼±ÓÃ~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[],float g ......
ÎÒµÄÒªÇóÊÇ£ºÍ¨¹ýץȡ±ðµÄ³ÌÐòÉϵıí¸ñµÄ¾ä±ú£¬È»ºó¶ÁÈ¡Õâ¸ö±í¸ñµÄÄÚÈÝ¡£
±í¸ñ¾ä±ú£¨ÀàÃû£ºMSFlexGridWndClass£©ÎÒÒÑ×¥µ½£¬½ÓÏÂÀ´ÈçºÎ¶ÁÈ¡±í¸ñµÄÄÚÈݾͲ»»áÁË£¿ÇóÖú¡£
ÄÜ°Ñ´úÂë·¢À´Ñ§Ï°Ï²»£¿
244326867@qq.com ......