structure
Second-level pointer type name * * Variable name2. Learning experience.Learning to the back has been a bit esoteric, especially the two-level pointer, a little around the bend, and write a system is really not easy, to consider all aspects, sometimes realize this function, you can not achieve another function, it is necessary to re-frame, delete the change, changed the deletion, but also will appear a bunch of mistakes to read, And the compilation is not the same as your own expec
[Blog Project actual combat faction]csharp through the DLL call OpenCV function, the picture as a parameteralways want to do the research, but because this aspect of knowledge is too small, but also because of their ability to find information is weaker, know today only found a better information. One is Thinimage, and the other is Basework, which implements the "CSharp calls the OpenCV function through the
C Language Blog Job--function nesting call one, the experiment Work 1.1 PTA topic decimal conversion binary design Ideas传入n边界条件:nCodeDebugging issuesBoundary value set to N==1, resulting in segment errorWorkaround: Instead of n1.2 Student performance Management System 1.2.1 Drawing function module diagram, briefly introduces function function.1.2.2 Display your engineering documents, such as:1.2.3 function
1, Baidu Share code call addressHttp://share.baidu.com/codeFollow the prompts, step-by-step custom selection, and finally copy the custom style to add to the Web.2, in the first page of HTML code to add the copied JS code3, the effect please see my blog page on the right, the Blue share buttonAdd Baidu Share button custom call JS code for
output the subscript in the array and the number of lookups. If not found, output-1 and number of lookups.
Cause of error: the judgment condition of understanding the wrong dichotomy results in a wrong answer
6-3 string Reverse order connection (20 points)Connects the positive and reverse sequences of the strings referred to by S, forming a new string in the array referred to by T.2. Learning experience.
For the recent state of learning is not satisfied, not that there is
Function Code SectionTotal number of the system code: XXXXAsk for your head file, insert student information and student score information Code, delete student score information code, total score sort code.Be sure to include the necessary comments in the code.1.2.4 Debug Results showRequired to display the menu, the results of each command, the illegal data must have a test and prompt, such as the user number input illegal, or enter the repetition number, indicating that the insertion failed. Q
macro format: #define Macro name Macro definition string
1.3.2 Macros work in the compilation preprocessing, not the true C statement, without a semicolon at the end of the line.
There can be no spaces in the middle of a 1.3.3 macro name.
1.4 Dynamic allocation through the function malloc () can dynamically allocate the corresponding size of memory units, using the dynamic allocation of memory to process multiple strings, can be based on the actual input of the amount of data to re
*ptr) , must provide the starting address of the memory, and no return value.Note: malloc is paired with free, and the compiler does not help us release memory, so remember to release it once you have applied dynamic memory.
2. Learning ExperienceThis week wrote a student Information management system project, did a lot of days, code volume also reached 278 lines, feel the difficulty of writing is still a bit big, especially in the robustness of the project, so I have to change a lot of in
pointer, a variable for holding a level two pointer is called a two-level pointer variable. According to the different cases of B, the level two pointer is divided into pointers to pointer variables and pointers to arrays.
2. Learning Experience
Two-dimensional pointers are upgraded versions of pointers, which are more difficult to understand and require special attention to pointer pointing problems
It's quite a challenge to build a project, but it's a step-by-step.
The b
First, the experiment work 1. Title: 6-5 recursive implementation sequential output integer (15 min) 1. Design ideas定义一个输出逆序的函数为void printdigits( int n ) if n/10==0 则输出n 如果 n/10>0 则调用本身printdigits( n/10 ) 输出n%10的值2. Code3. Problems encounteredThe first write is not the case that the value of n is zero, so the three test points have not.2. Student performance Management System 1. function Module Figure 2. My project file 3. Part of the function codeTotal number of this syste
to find out, go to school tomorrow to ask classmatesThe final rankingThird, read the code (1 points)#includeIv. Summary of the study this week (1 points) 1. Learn about the week1: This week the newly-learned content has recursion, in which recursion to notice must have recursive exit, recursive expression: such as fact=n*fact (n-1);2: There is the teacher taught how to build the project, although not successful, but the basic operation still understand3: Then you learn the pointer array, pointe
, which is the important point of recursion.V. Summary of the study this Week 1. Introduce this week's learning content
1. Learn basic function nesting calls, know how to make the code more readable, and realize the complex problem of structured program.
2. Recursive exit and recursive formula in recursive function is the main point, master the relationship between the equation can not delve into the process, otherwise it will be chaotic.
3. Macro Definition Format #define Macro
And the code is small, the words are simple and frightening
This week's study summarizes this week mainly to learn the big program structure
The goal is to prevent the code from being too long to break it into multiple functions
1. c files are a compilation unit, and the compiler processes only one compilation unit per compilation
So to build a project, add a number of source code, the compiler will all the source code files are compiled and linked together
The fun
---restore content starts---First, the experimental work student performance management System Requirements 1.1 PTA topic 6-5 Recursive implementation sequential output integer
Design ideas输入数字n调用函数 printdigits(n){定义变量res表示顺次输出的数字IF n/10=0res←n 递归出口否则调用函数printdigits(n-1)res←n%10输出res
Code
Debugging issuesWhen the judgment condition is n=0, the result of entering a single number is wrong, instead n/10=0 can be
Second, this week's topic set PTA Final RankingThird, read the
information according to the number of studies.Can realize continuous query and can not find the school number reminderThird, this week's topic set PTA Final ranking four, reading codeI chose two codes to do the comparison with the Nottingham Tower problem (using loop implementation and recursive implementation)#include Recursive in the book,Circulation is probably the idea of the use of the stack to solve the problem, although you can see that the loop and recursion on some problems of the com
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.