Home > Software engineering >  Vb basic
Vb basic

Time:09-20

The Function fun (a As an Integer)
B=0
The Static c
B=b + 1
C=c + 1
Fun=a + b + c
End the Function
Private Sub Command1_Click ()
Dim As a Integer
A=2
For I=1 To 3
Sum=Sum + fun (a)
Next I
Print the Sum
End the Sum

CodePudding user response:

The last line of code, End Sub isn't End Sum
 Private Sub Command1_Click () 
Dim As a Integer
A=2
For I=1 To 3
Sum=Sum + fun (a)
Next I
Print the Sum
End Sub

The Function fun (a As an Integer)
B=0
The Static c
B=b + 1
C=c + 1
Fun=a + b + c
End the Function

CodePudding user response:

About whether he is suitable for programming is very simple test:
On a newspaper or magazine articles, for a period of about 1000 words in Word input again, after losing to refer to the following answer:

A. there are more than 10 words or punctuation
B there is no words or punctuation mistakes and dare to bet for this
No words or punctuation errors and C fonts and layout fully consistent with the original
D print on the translucent paper and check the same original overlap, and feel very with a sense of accomplishment

A is not suitable for programming (reason: typing accuracy is low, careless)
B junior programmer (reason: typing accuracy high, careful and meticulous, confident, understand the whole Angle of half Angle concept)
C senior programmer (reason: in the B on the basis of understanding the font and layout is also an important factor of computer to print, but compared to D paranoid enough, strives for perfection, the results can verify)
D software project manager (reason: to be able to give convincing for project detailed requirements to the pole and typical test cases, users almost pick is not at fault, major!)

If want to from A to B, to my resources http://download.csdn.net/detail/zhao4zhong1/4084259 download "for programmers keyboard practice"

CodePudding user response:

1/f,,,,, I still don't understand, can I have a detailed process,,, I am a beginner, just contact (is about to take an examination of the vb)
  • Related