This work belongs courses | C Programming Language II |
---|---|
Where the job requires | C language I work 10 |
My aim in this course is | C language learning |
In particular aspects of the job which helped me achieve goals | Use nested loops |
references | C language teaching material |
1.PTA lab assignments
1.1 Mersenne numbers
1.1.1 Data Processing
Data are expressed: the definition of integer variables, t = 0 as a variable marker. When n = 1, output None. The outer loop, starting from 2, b = pow (2, a) -1, the inner loop 2 will start, if b% i = 0, t = 1, out of the loop. If t = 0, the output b, t is reset to 0, return to the main function
1.1.2 Screenshot experiment code
1.1.3 build test data
Input data | Output Data |
---|---|
19 | 3 7 31 127 8191 131071 524287 |
3 | 3 7 |
10 | 3 7 31 127 |
5 | 3 7 31 |
1.1.4PTA submit a list and description of
problems that occur and debugging solutions did not consider the case n = 1, did not mark the last variable is reset to 0.
Output triangle array of characters 1.2
1.2.1 Data Processing
1.2.2 Code Screenshot
1.2.3 build test data
1.2.4PTA submit a list and description
Screenshot students Code
Own Code Screenshot
Screenshot students Code
Screenshot their own codes
The idea of students smarter, more clever to write a short program
3. learning summary
3.1 learning progress bar
week | This week the time spent | Lines of code | Learned knowledge Introduction | Currently puzzling question |
---|---|---|---|---|
fifth week | 2 hours | 10 lines | Start learning "Hello World!" | Will not |
Sixth Week | 8 hours | Line 23 | Download questioning the wisdom and compiler | Compile error problem |
Week Seven | 11 hours | Line 82 | Process variable type and structure type classification | Compile error problem |
Eighth Week | 15 hours | 132 line | Using Dev-C ++ | Less skilled operation |
Week Nine | 16 hours | 167 line | Real parameter participating identification | Fta |
The tenth week | 13 hours | Line 89 | Part of the code of the branch structure | Fta |
Week 11 | 17 hours | 153 line | Use switch | switch application |
Week Twelve | 17 hours | 146 line | Loop structure | I do not know where to start cycle |
Week 13 | 13 hours | 106 line | Nesting and continue using the familiar cycle of learning | Fta |
3.2 Cumulative lines of code words and blog
3.3 Summary and perception of learning content
3.3.1 learning content summary
3.3.2学习体会
临近期末,要好好复习之前所学的知识,把各个知识点掌握到位,认真备考