汇编网首页登录博客注册
maxm的学习博客
博客首页博客互动【做检测题】论坛求助

我的博客

个人首页 |  我的文章 |  我的相册 |  我的好友 |  最新访客 |  文章收藏 |  论坛提问 |  友情链接 |  给我留言  
图片载入中
  •  做不了第一个就做最好的, 做不了最好的就做第一个。
  • 『姓名』:
  • 『性别』:保密『发送消息
  • 个人说明:不要执着于学习步骤, 宁愿多看点知识
  • 详细信息『加为好友』
学习动态
最新留言
友情链接

[2009-08-04 00:27] queue

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

typedef struct node
{
  int data;
  struct node *next;
}node,*pnode;

//该队列包含了一个队头和一个队尾
typedef struct queue
{
pnode front;
pnode rear;
}queue,*pqueue;

//初始化队列
void makenull(pqueue q)
{
  q->front=(pnode)malloc(sizeof(...
阅读全文 | 评论次数(1) | 浏览次数(1033) | 所属类型(c)

[2009-08-04 00:26] *p p* swap

#include <stdio.h>
#include <stdlib.h>

void swap(int *a,int *b);

main()
{
      int a = 3;
      int b = 4;
      printf("%d  %d\n", a, b);
      swap(&a, &b);
      printf("%d  %d\n", a, b);


      
      int c[]={6,7,8,9} ;
      int *p = c; 
      printf("%d   ", *p);     
  ...
阅读全文 | 评论次数(1) | 浏览次数(1003) | 所属类型(c)
页码数(1):  1