First, the PTA experimental work Problem 1:1. PTA Submission List
2. Design Ideas
Read the topic the biggest difficulty is to write a function that can invoke the topic table
- (1) Define the variable A as the location code we want to enter.
- (2) Enter the value of a.
- (3) Call the function Chinese and pass the value of argument a to the function and leave it in function parameter a.
- (4) The variables defined in the function b,c to preserve the first and second bytes of a, respectively.
- (5) Observation table indicates the maximum number of rows is not more than 100
- (6) therefore c=a%100,b=a/100.
- (7) Output the first byte b+160 first, and then output the second byte of b+160.
3. Code
4. Problems encountered in debugging process and PTA Submission List situation description.
The subject is relatively simple is test instructions relatively difficult to understand, the topic is required to use C language in the original resources for programming, seriously read the question and there is no problem
Topic 2: Number falling into the trap 1. PTA Submission List
2. Design Ideas
4. Problems encountered in debugging process and PTA Submission List situation description.
The first time a submission has a prompt error in place. The debugging process is as follows.
The original answer should be only one line. And then there are two lines. The reason is that I did not make a judgment outside of the loop. Cause errors.
Topic 3. Simple Calculator 1. PTA Submission List
2. Design Ideas
4. Problems encountered in debugging process and PTA Submission List situation description.
The two-time errors are resolved with the denominator of 0 and illegal characters respectively. The problem. The two problem-solving scenarios should be similar. That is, if it appears/(just division sign) to determine whether the floating-point variable behind it is 0. The second is that I take the subtraction out, as long as the character deformation is not equal to these characters will determine the error.
Second, this week's topic set PTA Final ranking.
Iii. Summary of this week's study 1. What have you learned?
1.1 How is a one-dimensional array defined and initialized?
1.2 A one-dimensional array in-memory structure? can draw a description. What does an array name mean?
1.3 Why use arrays?
1.4 Introduction to the selection method, bubble method, direct insertion sort how to sort? Pseudo code display.
1.5 What is the binary search method? It differs from the order lookup method?
1.6 How are two-dimensional arrays defined and initialized?
1.7 How is the matrix transpose implemented? In the matrix: the relationship between the row label I of the lower triangle, the upper triangle and the symmetric matrix J? Please state.
1.8 What is the general application of a two-dimensional array?
2. This week's content, you are not what?
C Language Blog Job-data type