[C language summary] A preliminary understanding of programming

August 9 learning programming record

Source code record of the first programming

#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int max(int a, int b)
{
int z;
if (a >b){
z = a
;
}
else{
z = b
;
}
return z;
}
int main()
{
int c = 0, h = 0,z=0;
printf(“请输入两个数字:”);
scanf("%d,%d", &c,&h);
z = max(c, h);
printf(“z=%d\n”, z);
return 0;
}

First impression and understanding of characters

Some basic understanding and application of int
long
long long
double
flout
char and so on have also made me more aware of characters other than int

Review of constants and review of loop statements

①Basic constant ②Use of const and basic knowledge of understanding ③The use of define
is definitely a must-learn basis for loops. I have also learned about it. Today, I have a certain review and consolidation of knowledge. The most classic ①IF else②for while The rest is not yet get to the bottom

Escape character

This picture is also sent by the teacher today and needs to be remembered. On this basis, there is an interview question arranged. You can get a basic understanding and share it with you again. This table
Insert picture description here
finally is the application and construction of the function today. It is also left in the class of Teacher Bit The homework for me to consolidate is the same as the code sent for the first time. I also initially left my mark on bit programming. Come on Anton

Guess you like

Origin blog.csdn.net/weixin_43762735/article/details/107893178
Recommended