Ask the expert to help you debug the program

Updated on number 2024-02-09
5 answers
  1. Anonymous users2024-02-05

    Program debugging is the process of testing the compiled program by manual or compiling the program to correct syntax errors and logical errors before putting it into actual operation. This is an indispensable step to ensure the correctness of computer information systems. After the computer program is written, it must be sent to the computer for testing.

    The first step is to use the program to send the prepared source program to the computer according to a certain writing format, and Cheng He will add, delete or modify the source program according to the user's intention.

    The second step is to translate the input source program into machine language, that is, use the compiler to perform a syntax check on the source program and translate the source program sentences that conform to the grammar rules into a "language" that can be recognized by the computer. If the compiler checks and finds a syntax error, the program must be used to correct the syntax error in the source program and then compile until there are no syntax errors.

    The third step is to use the connection program in the computer to connect the translated computer language program and build it into a program that can really run on the computer. In the connection process, there is generally no connection error, if there is a connection error, it means that there are problems such as confusing subroutine calls or parameter passing errors in the source program. At this time, the source program needs to be modified with the program, and then compiled and concatenated, and so on until there are no connection errors.

    In the fourth step, the modified program is tested and run, and the output results can be compared with the correct results of manual processing. If there is a discrepancy, it is an indication that there is a logical error in the computer's program. If the program is not large, you can use manual methods to simulate the computer to modify the data of the source program; If the program is large, it is obvious that manual simulation will not work, so the computer can only be set up to perform in a single-step manner, and track the operation of the program step by step.

    Once you find the problem, you still have to use the program to modify the source program, and then you still have to compile, connect, and execute until there are no logical errors. It can also be compiled after it is completed.

  2. Anonymous users2024-02-04

    <> I made an exact same mistake as yours, and I used the ** generated by vc6 and added two characters to it.

    There was no problem with this project before it was added, but this problem occurred after it was added.

    You should be able to see that I've added two to it"/"It's this line that is commented out that creates this problem, and you can add this line to your ** to solve your problem.

    The reason is that the win32-based project in the VC needs some pre-compiled commands in this header file, and you can't remove it.

  3. Anonymous users2024-02-03

    The 8-bit unsigned positive range is as follows.

    Binary: 00000001 11111111 octal representation: Divide the binary from back to front in three digits as 00 000 001 11 111 111, and then convert each group into octal numbers as: 001 377 Hexadecimal notation: Separate the binary from back to front according to four digits as 0000 0001 1111 1111, and then convert each group into hexadecimal numbers as: 01 ff Similarly: 8-bit signed positive numbers range as follows.

    Binary: 00000001 01111111 can be obtained by following the above method.

    The octal system is: 001 177

    Hexadecimal is: 01 7f

  4. Anonymous users2024-02-02

    8-bit unsigned positive numbers representing the range 0a-a255, written as 00ha ha0ff in hexadecimal form; The representation range of 8-bit signed positive numbers is -128a a+127 written in 16-bit base form 80ha ha7f

  5. Anonymous users2024-02-01

    Try it with iToa and Atoi functions, you can check the manual for details, it can support 2,4,8,16,10 base conversions, ready-made functions do not need to write programs; If you want to solve the problem by programming, you can convert it to str type first and then discuss it by bit.

Related questions
10 answers2024-02-09

She is still wandering, hesitating, waiting to see your performance, if you are qualified, she will accept it again, if you can't do it, she will forget it. Now you have to take your time and behave well, don't push her to believe that it won't be long before she comes back to you again. Come on, I'm also a college girl, listen to me

7 answers2024-02-09

love me,love my dog.Love me, love my dog.

like mother,like daughter.There is a mother and there is a daughter. >>>More

2 answers2024-02-09

If you are playing games, it is better to buy a flat one, which can increase the performance of the hardware and give you several configurations for your own reference. >>>More

13 answers2024-02-09

Only do the first. Questions 1 and 3. The second question is to determine the values of a and b by the derivative method, and then substitute it into f(x)= ax +8x+b, and then use the derivative method to find the value range. >>>More

11 answers2024-02-09

First of all, after booting up, press a certain piece, generally the boot will be displayed, select the boot boot address, or you enter the BIOS to change to boot from the optical drive first. Put the disk into the optical drive and reboot,That's it,Follow the prompts,Install it will let you format the C disk,Then the system can be installed on the C disk,Only the things of the C disk will be deleted,So be sure to do a good job of the C disk backup before installation。 >>>More