First, experimental work 1.1 PTA title: decimal Conversion binary design Ideas
如果n/2>0 继续调用函数 输出n%2 否则 输出n%2
Code
Debugging issues
Recursive conditions write wrong, written n>0, when N is not 0 of the number, the front will be more than a 0 out.
1.2 Student performance Management System 1.2.1 Drawing function module diagram, Brief introduction function function 1.2.2 Show your project file 1.2.3 function code part 1.2.4 Debug Results show 1.2.5 Debug encountered problems and solutions two, this week's topic set of PTA Final ranking.
Third, read the code four, this week study Summary 1. Introduce this week's learning content 1. Learn the basic definitions of macros, such as:
宏定义格式:#define 宏名 宏定义字符串#define PI 3.1415926#define TRUE 1
2. Pointers pointing to pointers
General definition: type name * * variable name;
int a=10; int *p=&a; int **pp=&p;
&&a, &p, and PP equivalents, &a, p, and pp are equivalent, a,p, and **pp represent the same unit, their values are the same
It seems very simple, but I think it is not easy to really grasp, easy to confuse, carelessly wrong
3. Command-line arguments
General form: Command name parameter 1 parameter 2 parameter 3 Parameter n
Main function main () can have two parameters
int main(int argc,char *argv[]) { ··· }
4. Dynamic Storage allocation function malloc ()
if((p=(int *)malloc(n*sizeof(int)))==NULL) { printf("Not able to allocate memony.\n"); exit(1); }
When a dynamically allocated block of storage is no longer in use, it should be released in a timely manner
This function has not been used by itself, but in the process of doing the problem, have encountered, I think if it is let me use, I do not necessarily use, or to learn a lot.
5.2. Learning Experience
I feel this week learned a lot of knowledge, but for this part of the newly-learned knowledge, some places still do not understand, looks very laborious, preview of time to see long, but do the problem still always wrong. Find time to take a good look at this part of the knowledge.
See the teacher in class to talk about engineering, as if very simple look, wait until they do, found that it is difficult, did not do it for a long time, and has been east wrong west, changed to change to have not finished writing. Feel good pain t t
This week on the machine test, but also a blow to confidence, the test is getting worse, more and more suspicious of their ability, but I will not give up ...
Have a good reflection on, their ability or not enough, so will be the worse the test
C Language Blog Job--function nested call