Chinaunix首页 | 论坛 | 博客
  • 博客访问: 441343
  • 博文数量: 113
  • 博客积分: 446
  • 博客等级: 下士
  • 技术积分: 1229
  • 用 户 组: 普通用户
  • 注册时间: 2012-12-09 16:01
个人简介

Let's go!!!!!

文章分类

全部博文(113)

文章存档

2019年(5)

2018年(4)

2017年(9)

2016年(5)

2015年(39)

2014年(6)

2013年(28)

2012年(17)

发布时间:2013-01-01 10:39:23

//链队列 #include<stdio.h> #include<stdlib.h> #include<string.h> typedef struct{ char name[10]; int age; }QElemType; struct Qnote{ QElemType data; struct Qnote *next; }; typedef struct Qnote Note; typedef struct{ Note *front; //队头指针 Note *rear; //队尾指针 }LinkQueue; ......【阅读全文】

阅读(1171) | 评论(0) | 转发(0)

发布时间:2012-12-31 09:51:02

//顺序栈 #include <stdio.h>#include <stdlib.h>#include <string.h> #define stacksize  10#define add         2 typedef struct { int *top; int *base; int size;}Stack; void initStack(Stack *s)     ......【阅读全文】

阅读(1043) | 评论(0) | 转发(0)

发布时间:2012-12-28 13:17:55

单向链表#include#include#include
#define len sizeof(struct student)struct student{char name[10];int age;struct student *next;};
struct student *creat(struct student *head){int n,m;struct student *p1,*p2;printf("Enter number of note:");scanf("%d",&n)......【阅读全文】

阅读(1478) | 评论(1) | 转发(1)

发布时间:2012-12-26 12:26:14

1.sizeof操作符的结果类型是size_t,它在头文件中typedef为unsigned int类型。 该类型保证能容纳实现所建立的最大对象的字节大小。   2.sizeof是算符,strlen是函数。  3.sizeof可以用类型做参数,strlen只能用char*做参数,且必须是以''\0''结尾的。 4.数组做sizeof的参数不退化,传递给strlen就退化为指针了。  5.大部分编译程序在编译的时候就把sizeof计算过了 是类型或是变量的长度这就是sizeof(x)可以用来定义数组维数的原因 ......【阅读全文】

阅读(961) | 评论(0) | 转发(0)

发布时间:2012-12-21 19:46:28

#include
void set_1(int *var,int i)     //置1{ *var |=(1......【阅读全文】

阅读(1128) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册