#define _CRT_SECURE_NO_DEPRECATE
#include <stdio.h> //标准输入输出 printf scanf
#include <stdlib.h>// 标准函数库 malloc申请内存 free释放内存
#include<Windows.h>
#include<string.h> //包含字符串处理函数: strcpy拷贝 strcmp比较 strcat追加
int main() {
/*
数据类型由编译配创建,为了更好的管理内存空间
数据类型:
基本类型: 整型 int short long
字符型 char
实型 (浮点型) float (单精度实型) double(双精度实型)
构造类型: 数组类型
结构体类型 struct
联合类型 union
枚举类型 enum
指针类型: char* int* int**
1. 数据类型的别名: typedef
typedef struct person {
char name[10];
int age;
}p;
p a = {"a",10};
2. 区分数据类型
char* p1, p2;//前一个为char* 后一个为char
typedef char* c;
c p1, p2; //使用重命名定义指针类型
3. 提高代码可移植性
typedef long long my_long;
my_long a;
my_long b;
system("pause"); //按任意键继续 阻塞
return EXIT_SUCCESS;//返回正常的值 0
*/
return 0;
}
02-17
131
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-03
121
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-23
1015
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-23