This work belongs courses | C Programming Language II |
The operational requirements where | https://edu.cnblogs.com/campus/zswxy/CST2019-3/homework/9827 |
My aim in this course is | Learn how to define a function, and call the function |
In particular aspects of the job which helped me achieve goals | Learn compilation errors and how to correct |
references | "PTA system Frequently Asked Questions", Baidu |
1.PTA lab assignments
1.1 daffodils JUDGMENT
1.1.1 Data Processing
Data are expressed: represented by an i-th digit, the tens digit represented by j, the hundreds place by k; i, j, k, m, n are used to define the int
data processing: The problem with the if-else statement; and the subject of the request with the corresponding function
1.1.2 Screenshot experiment code
1.1.3 build test data
Input data | Output Data | Explanation |
---|---|---|
513 | 1 | PTA given data |
512 | 0 | It does not belong to a few daffodils |
100 | 0 | Any integer and the sum itself is not cubic |
1.1.4PTA submit a list and description
Q: (m == N) I wrote (m == n), the correct result display section, did not understand the C language different upper and lower case represents a meaning of
A: A (m == n) to (m = = N)
Description: C language has a fixed syntax rules, we have to abide by the rules of grammar in a proper manner programming
1.2.1 you judge an integer divisible by the square of the sum can be five
1.2.2 Data Processing
Data are expressed: the letter i, S represents a variable, and the description S = 0; references n! ; With the function pow
data processing: The problem with a while statement; return later than 0 but added directly (S% 5 == 0);
1.2.3 Screenshot experiment code
1.2.4 build test data
Input data | Output Data | Explanation |
---|---|---|
12 | 1 | PTA to the data |
123 | 1 | In line with the requirements of title |
128 | 0 | Does not meet the subject requirements |
1.2.5PTA submit a list and description
Q1: compilation mode used before always wrong, such as duplicate functions defined hidden problems such as
A1: change a way to compile and easier than before
Q2: display compilation errors, after scanf forget to add ";"
A2 in :: after scanf statement with a semicolon
Description: C language programming, there are many right ways, how we need to discover and explore
2. Code peer assessment
Students Code:
own Code:
- The basic idea is the same, we are already defined function to program
- The first row of the students face is not very good, "=" there is no space before and after
- Representation of the number of daffodils second student is more concise than I, it is worth learning
3. learning summary
3.1.1 Learning progress bar
Week / Date | This week the time spent | Lines of code | Learned knowledge Introduction | Currently more confusing issues |
---|---|---|---|---|
Week Nine | 2 days | 200 lines | Daffodils number representation; and two-digit representation squares | Do not understand the concept of a strange, hard to program correctly |
3.1.2 Cumulative lines of code words and blog
mind Mapping:
3.1.3 insights and learning content summary
Sentiment: C language discipline covers a wide range of knowledge, the need to constantly find information and practice; so many times through practice, new knowledge emerging I also really difficult to understand, but some students to help, or can be overcome; difficulties is essential in this process, I will insist that effort.
3.1.4 Learning Experience
C language reference function and call really hard to learn for the beginner, I can only continue to gather information; sometimes I even have not understood the meaning of the questions, with the help of the students I know a lot; on this course, we need to spend a lot of time to practice and consolidate knowledge; I also hope that teachers speak several exercises help us understand in class; of course I will go to the library to read some relevant information to enhance their own; I I believe the future is not a dream.