C blog work 05--2019- pointer

0. show PTA scores


1. This chapter summarizes the study

1.1 learning content summary

Finishing pointer This chapter is mainly learning knowledge, must contain contents are:
Pointers practice loop variable
character string pointer to how to represent
dynamic memory allocation
pointer array and its application
two pointer, the row pointer
function returns a pointer

1.2 This chapter learning experience

Most applications pointer array is also limited and changed to use, not very proficient in the use of pointers, most errors can occur when using scanf input pointer for two, I hope we can talk about more than the content of the pointer aspects

week The amount of code
13、14 736

2.PTA lab assignments

7-5 2.1 Delete string substring

2.1.1 pseudocode

Use code symbol rendering rendering `pseudo-code. Note: The pseudo-code is not interpreted code, the code must be + Chinese text description. Introduce data processing, what variables.
The data processing can introduce C language notation. With specific reference to look at courseware! ! !

2.1.2 Code Screenshot


2.1.3 summarize knowledge this question

As summarized below, you can also watch a summary of each subject teacher practice Superstar video.
1. The right master array approach
for (I = n-; I> LOC; i--)
{
Data [I] = Data [-I. 1]; // right
}
2. Note that the insertion position of the boundary, the end of the array head or array, require special handling
3. Note inserted, by an array length

2.1.4 PTA submit a list and description

Screenshot PTA submit the list to introduce encountered problems and solutions. Such as:

提交列表说明:
请按照如下要求说明提交列表,注意必须写明每个错误点,你是怎么解决的。此项没写好,本题0分
1.编译错误:分号忘记打
2.部分正确:测试数据0,格式错误。0测试点输出问题,直接复制PTA解决。
3.部分正确:个位没有解决好
4.答案错误:。。。
5.部分正确:。。。
6.全部正确:。。。

2.2 题目名2

2.2.1 伪代码

2.2.2 代码截图

2.2.3 总结本题的知识点

2.2.4 PTA提交列表及说明

2.3 题目名3

2.3.1 伪代码

2.3.2 代码截图

2.3.3 总结本题的知识点

2.3.4 PTA提交列表及说明

3.阅读代码(-2--1分)




每次顺序读取两个值,前一个比后面小的话,就说明出现了上述六种特殊情况(分装另一个函数,增加可读性),用后一个值减去前一个值
如果前一个值大于后一个值,正常读取当前值即可

Guess you like

Origin www.cnblogs.com/sixiDL000/p/11963363.html