Implementation of the string comparison feature for the C typing exercise program 10

Updated on technology 2024-04-12
8 answers
  1. Anonymous users2024-02-07

    It's really hard to say casually if you haven't done this. You can try using the comparevalidator control, but this control compares the values of two text boxes, one character at a time. You need to write your own ** transformation.

  2. Anonymous users2024-02-06

    Paste ** directly to you.

    procedure : tobject);

    varv_strtmpold,v_strtmpnew:string;

    v_index,v_errcnt:integer;

    beginv_strtmpold := trim(;Gets read-only text box characters.

    v_strtmpnew := trim(;Get input text box characters.

    v_errcnt := 0;Count of error characters.

    Iterate through the read-only textbox characters and compare strings one by one.

    for v_index := 1 to length(v_strtmpold) do

    beginif length(v_strtmpnew) >= v_index then

    beginif v_strtmpnew[v_index] begininc(v_errcnt);

    end;end else

    begininc(v_errcnt);

    end;end;

    if v_errcnt > 0 then

    clred;

    showmessage('The character entered is incorrect, and the number of characters is incorrect' + inttostr(v_errcnt));

    end else

    beginshowmessage('The submission was successful');

    end;end;

  3. Anonymous users2024-02-05

    Very well implemented... Text box key events can be handled.

  4. Anonymous users2024-02-04

    Is the list not instantiated and an empty object?

  5. Anonymous users2024-02-03

    c Generally used vs development (full name: Microsoft Visual Studio) is generally the 2010 version.

  6. Anonymous users2024-02-02

    Practical things to do by yourself.

  7. Anonymous users2024-02-01

    It feels like string processing. OpenFile component. The last one is displayed.

    It's the property of the form. These are the most straightforward properties to modify. Modify the string.

    There is basically nothing to say. It is not recommended that you go directly to someone to ask for **. You look at the corresponding widget properties.

    It's all basic stuff.

  8. Anonymous users2024-01-31

    You can help you with the outline, complete the full text of the text, and handle the format by yourself.

Related questions
5 answers2024-04-12

Try to be as concise and easy to understand as possible, and you will understand it when you use it more. >>>More

7 answers2024-04-12

Do it by your train of thought.

Method 1. string strnumber="200m"; >>>More

4 answers2024-04-12

Cite month[12][10]; Wrong. Without the element month[12][10], up to month[11][9], and the pointer p is useless. There's also the deletion of all your +10-level corresponding *. >>>More

4 answers2024-04-12

You use a P1 port to control the dynamic scanning of 8 digital tubes, and the dynamic scanning display of digital tubes needs to be blanked. >>>More

3 answers2024-04-12

I don't know what words to use to describe it.