
C语言的练习
文章平均质量分 75
幻想无极
IOS开发
展开
-
C语言练习-指针(数组,字符串)
// // main.c // 12.6 // // Created by lanqs on 14/12/6. // Copyright (c) 2014年 . All rights reserved. // #include #include #include #pragma mark-指针练习1-数组的倒置 //void changeshuzu(int *a,int lengt原创 2014-12-06 16:12:36 · 799 阅读 · 0 评论 -
C语言中的结构体指针
struct Birthday{ int year; int month; int day; }; //声明结构体类型 //typedef:定义新类型,为类型取别名 //typedef 原有类型,新类型 typedef struct Student{ char *name; int age; int code; double score[3]原创 2014-12-06 19:57:56 · 534 阅读 · 0 评论 -
C语言中结构体的简单使用
struct Birthday{ int year; int month; int day; }; //声明结构体类型 //typedef:定义新类型,为类型取别名 //typedef 原有类型,新类型 typedef struct Student{ char *name; int age; int code; double score[3]原创 2014-12-06 18:20:01 · 603 阅读 · 0 评论 -
C语言中的结构体数组
struct Birthday{ int year; int month; int day; }; //声明结构体类型 //typedef:定义新类型,为类型取别名 //typedef 原有类型,新类型 typedef struct Student{ char *name; int age; int code; double score[3]原创 2014-12-06 18:50:04 · 1279 阅读 · 0 评论