- 博客(7)
- 收藏
- 关注
原创 C语言 指针(下)
#include #include #include typedef struct { int num ; char *name; char sex; float score;}Student;int *getArray();void printBookName(ch
2015-12-16 16:21:02 213
原创 C语言 指针(上)
#include void swapValue(int x,int y);void swapValue1(int *x ,int *y);int main(int argc,const char * argv[]) { /* 为什么需要指针? 1.使用指针处理数组中存储的数据,它的执行速
2015-12-16 16:10:16 201
原创 C语言 结构体
#include #include struct Student{ char name[100]; int age; float score ;};typedef struct { char *name; //字符指针 int age; fl
2015-12-16 15:56:02 377
原创 C语言 数组
#include #include #include //函数的声明void changeScalar(int x);void changArray(int arr[5]);int main(int argc,const char * argv[]) { int sum = 0; fo
2015-12-16 15:45:21 296
原创 C语言 函数
#include //全局变量int ee =0;//在main函数的前面,我们需要将程序需要用到的函数,声明或定义出来//函数的声明int getSumm(int a,int b);//有返回值有参数类型int getMax(int a,int b,int c){ //auto int ma
2015-12-16 15:34:54 234
原创 C语言 枚举与循环体
#include #includeenum WeekDays{ Monday , Tuesday, Wendesday , Thursday, Friday, Saturday, Sunday };typedef enum { Red, Orange,
2015-12-16 15:28:51 796
原创 C语言 变量与运算符
#include #include #define MAXX 100#define PI 3.1415//程序的入口,一个程序有且只有一个main函数int main(int argc,const char * argv[]) { printf("Hello, World!\n");// sca
2015-12-16 15:08:14 372
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人