-
The second line declares that the textbox control array ** is wrong and does not conform to the syntax specification!
If you've manually drawn two rows of textbox control arrays txt1(10)-txt2(10) and the command button cmd1 on your form, it should look like this:
private sub cmd1 click()dim i as integer loop variable.
for i = 0 to 9
txt1(i).text=val(txt2(i).text)+1 to change the algorithm according to your needs.
next i
end sub
I don't know what kind of operation you want to implement, but the above ** can help you achieve the required function, you just need to change the ** of the operation part to what you need, if you need more help, you can q me: 106823537 vinson
-
The problem is not clearly described, but it should be said what function to be implemented first, and then think about what the input is and what the output is, and it should be clear that it can be made, which is not too difficult
It's not so easy to live when you get to the company, <
-
Tell me what you want this app to do!
-
Twice text is fine.
-
a = a + b
b = a - b
a = a - b
Step by step: Step 1: A = A + B, which is nothing to say, look at (A + B) as a whole, which is the value of A. The value of a is (a + b) and the value of b is b.
Step 2: b = a - b, just bring in the value of the first step a, and get b = a + b) -b = a. The value of a is (a + b) and the value of b is a.
Step 3: A = A - B, put.
In steps 1 and 2, the values of a and b are brought in to give a = a + b) -a = b. The value of a is b, and the value of b is a.
So the result of the program is that the values of a and b are swapped with each other.
In summary: option A is wrong, the values of a and b are the same, and they are both the initial values of b.
b option is incorrect, bring it in to know.
The c option is correct, and the intermediate variable t is used, and the values of a and b are reversed.
The d option is incorrect, regardless of the size of a or b.
In fact, it is easy to be stunned by so many substitutions, and the best way is to bring in a set of numbers into the experiment, such as a = 1, b = 2.
-
This is a two-way way to swap the values of two variables.
Temporary variables are not used here.
a=a+bb=a-ba=a-b
Temporary variables are used here.
t=aa=b
b=t You can understand this at a glance, you can study it yourself.
Good question, write with a for loop and judgment statement. >>>More
int main()
int i,j,a[100]; >>>More
Try my way:
Create a text on the form, and a command1 >>>More
The length of the target product is generally of little relevance to the primer design. When designing, the following points should be noted: >>>More
I think it's a hardware problem, because even if the fort is not good, it won't make the sound so bad, it's quite serious. >>>More