//纯C
#include <stdio.h> //标准输入输出头文件
#include <stdlib.h> //标准库函数含malloc()、calloc()、realloc()、free()、system()、atoi()、atol()、rand()、 srand()、exit()等等
#include <string.h>
main()
{
//printf("hello, c \nbbb"); //\n 换行 printf里这边是一个字符串指针,不能有1个以上参数
//system("pause"); //不通用,需要引用头文件 stdlib.h
int price ; //定义变量时可以赋值也可以暂时不赋值
char * people;
int a,b,c;
price = 4;
people = "张三";
printf("%d",price); //printf默认参数为字符串,如果是别的字符类型如int需要设置第一个参数为参数输出类型%d
printf("价格是%d",price);
printf(people); //输出内容是 张三 printf后参数是指针,编译器通过指针找到指针指向的内存里的具体内容加以调用
getchar(); //比较通用的暂停DOS窗口方式
}