- 博客(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
275
原创 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
259
原创 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
451
原创 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
339
原创 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
301
原创 C语言 枚举与循环体
#include #include enum WeekDays{ Monday , Tuesday, Wendesday , Thursday, Friday, Saturday, Sunday }; typedef enum { Red, Orange,
2015-12-16 15:28:51
892
原创 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
443
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅