首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看C语言
#include <stdio.h>
#include <malloc.h>

typedef struct Node
{
  int data;
  struct Node *prior, *next;
}node;

node *Init()
{
    node *head;
......................
阅读全部 | zhao72349947 贴于 2013年6月13日 16:36     hide bbsi
#include<stdio.h>
#define max 100000

struct sqlist
{
int data[max+1];
int lenth;
};

int ssort(sqlist *l)
{
  int i,j,k,min;
......................
阅读全部 | zhao72349947 贴于 2013年6月13日 16:35     hide bbsi
#include<stdio.h>
#include<string.h>
#define max 100
struct sqlist
{
 int data[max+1];
 int lenth;       
};
int csort(sqlist *l)
{
    int i,j;
    for(i=2;i<=l->lenth;i++)
......................
阅读全部 | zhao72349947 贴于 2013年6月13日 16:34     hide bbsi
#include<stdio.h>
#define max 100000

struct sqlist
{
int data[max+1];
int lenth;
};

void shellinsert(sqlist *l,int d)
{
int i,j;
......................
阅读全部 | zhao72349947 贴于 2013年6月13日 16:33     hide bbsi
#include<stdio.h>
#define max 100000

struct sqlist
{
int data[max+1];
int lenth;
};

void shellinsert(sqlist *l)
{
int i,j,temp;
......................
阅读全部 | zhao72349947 贴于 2013年6月13日 16:33     hide bbsi
#include<stdio.h>
#define max 100000

struct sqlist
{
int data[max+1];
int lenth;
};

int patition(sqlist *l,int low,int high)
{
    l->data[0]=l->data[low];
......................
阅读全部 | zhao72349947 贴于 2013年6月13日 16:32     hide bbsi
#include<stdio.h>
#include<malloc.h>
#include<string.h>

struct node
{
char data;
int c;
node *lc,*rc,*pre;//左孩子为子女,右孩子为兄弟姐妹,pre父亲 
};

struct sqelist 
......................
阅读全部 | zhao72349947 贴于 2013年6月13日 16:30     hide bbsi
#include<stdio.h>
#include<string.h>
#define MAXSIZE 100

struct seqstack1//数据栈 
{
float data[MAXSIZE];//数组 
int top;//栈顶 
};
int init_seqstack1(seqstack1 * s1)//初始化栈 
{
s1->top=0;
......................
阅读全部 | zhao72349947 贴于 2013年6月13日 16:28     hide bbsi
#include<stdio.h>
#include<string.h> 
#include <malloc.h>

struct node  //结构体 
{
       int num;   //学号 
       char name[15];  // 姓名 
       int gs;   //高数成绩 
       int yy;   //英语成绩 
       int c;     //c语言成绩 
       node *next;//指针
......................
阅读全部 | zhao72349947 贴于 2013年6月13日 16:27     hide bbsi
#include<stdio.h>
#include<string.h>
#include<malloc.h>
struct node;
node *creat();//建立祖先
int add_child(node *head);//添加家庭成员
int add_brother(node *head);//添加兄弟成员
void print(node *head,char *x);//输出指定家庭成员
int beifen(node *p,char *x);//确定成员辈分
void print1(node *head);//先序遍历 输出家庭成员
void chengyuan(node *head,int s);//输出相应辈分成员
node *shanchu(node *head,char *s);//删除成员 
......................
阅读全部 | zhao72349947 贴于 2013年6月13日 16:20     hide bbsi
上一页 133 134 135 136 137 138 139 140 141 142 下一页