VB Programming Questions Very Urgent!!!!!!!!!!!!!

Updated on educate 2024-02-09
7 answers
  1. Anonymous users2024-02-05

    The last sentence is wrong, you have already swapped the values of the original b and c in the second if sentence, which means that the value of a must be greater than the value of c, and at this time, the value of a is not necessarily greater than the value of b, so this is not good.

  2. Anonymous users2024-02-04

    Judge the size of the place. Huh.

  3. Anonymous users2024-02-03

    If you look at the number on the right, it should be a sequence of Fibonacci numbers, i.e., the first and second elements in the sequence are both 1, and the values of the other elements are the sum of the first two elements. This problem is to sum the sequence to 144

    option base 1

    private sub form_click()dim x() as integer

    dim i as integer

    dim sum as integer

    redim x(2)

    x(1) =1: x(2) =1 'The first two elements of the Fibonacci sequence.

    do while x(ubound(x)) 144 'The cycle is used to obtain each element less than or equal to 144.

    redim preserve x(ubound(x) +1)x(ubound(x)) x(ubound(x) -1) +x(ubound(x) -2)

    loopsum = 0

    for i = 1 to ubound(x)print x(i); space(5);

    sum = sum + x(i)

    next i

    printprint "sum is"; sumend sub

  4. Anonymous users2024-02-02

    b, b, c The first question, two +=, calculated from right to left, is correct.

    Second, the variable cannot be a keyword, the first character cannot be a number, and special characters can only have underscores.

    In the third question, the hexadecimal of option C is correct, and the decimal system of option B should not appear 8, so it is wrong.

  5. Anonymous users2024-02-01

    Let me tell you what the title means:

    Throw dice 36,000 times.

    Throw 2 at a time and count the sum of the points of the two dice

    In the end, you will find that the number of points with a sum of 7 is the most numerous.

    The idea is to write a program that throws two dicons.

    Write a 6*6 array of dice results, corresponding to the occurrence of two dice, e.g. 1 and 1 for a[0][0].

    For example, 4,6 corresponds to a[3][5].

    3.The sum of points is calculated in the diagonal direction of the suboblique.

    Example 2 3 4 5 6 7

  6. Anonymous users2024-01-31

    Who said you don't need English to learn C language?!

  7. Anonymous users2024-01-30

    I just want to think about the solution and write it ...... detail

    If you unfortunately make a mistake in solving the problem and provoke the god Ben don't spray =w= First of all, I found that the number of steps is obviously fixed, an n*n matrix we have to take (n-1)*2 steps, and then we divide it into 2 parts through the lower left-upper right diagonal, the numbers on the diagonal obviously don't care about it, because the path you take is (n-1) characters + middle characters + (n-1) characters, and the diagonal is the middle character.

    Then we can happily start BFS!

    Starting from (1,1) and (n,n), start bfs to their respective small blocks respectively (that is, turn the whole picture into a graph with the upper half of the triangle and the bottom half of the triangle), go to a grid and add the hash value of the corresponding path you have traveled to the elements in the hash table in that grid (here you need to open the corresponding array to store, for example, let the abchash value be k, then you need to discretize hash[1][3][k]++). It is used to record the grid that you have walked through before (the string hash will be =w=), and then it is similar to a half-fold search (the name you take, not a dichotomy), and the hash table that goes to the middle grid on both sides is compared, for example, in the example, the grid d starts from (1,1) and there are 1 kind of abcd and 2 kinds of abed; There is also 1 ABCD and 2 ABED from (n, n); Therefore, the contribution of the grid d is 1*1+2*2=5

    That's how it should be. Don't forget to adopt it =w=

Related questions
19 answers2024-02-09

3.Let u=(x 3+y 3) (x 2+y 2) ,z≠0,f(z)=u+iu,z≠0,du/dx=du/dy;du dx -du dy=0 satisfies the r-c condition, f(z) is intermittent at z=0, and is not differentiable. >>>More

8 answers2024-02-09

If the landlord is looking for the textbook for the class, it is not helping the landlord, the book is not good, and no one has to do the electronic version. >>>More

4 answers2024-02-09

In fact, it's not difficult to learn C, the key is that you have to find a teacher who suits you or self-study**, I didn't learn when I signed up for the class, and then I didn't learn it online**, I read it at the beginning, Mr. Xia's, I feel that the lecture is very concise and clear, the kind that you can understand when you listen to it, and what you talk about is the key, and there is a difference from others is that there are many difficult concepts with metaphorical examples, for example, the array I recently saw is compared to a box with things in order, and I understand the array variables and assignments at once. It's much better than what I read before, Hao Bin and Zeng Yi's cumbersome like reading a textbook.

10 answers2024-02-09

I wrapped myself in, and the personal money went into the personal pocket boss discounted 25 yuan, and in fact, after taking out 10, I found 1 yuan back, and I paid 9 yuan. The 9 yuan includes the 2 yuan for the accommodation and waiter. Wouldn't it be a repetition if you added that?!

2 answers2024-02-09

Summary. The flow lamp program uses an array to store the state of each lamp, and realizes the flow lamp effect by looping through the array, and changes the state of the lamp each time it cycles, so as to achieve the flow lamp effect. >>>More