求各位大哥帮我做几个C语言程序呗!

来源:百度知道 编辑:UC知道 时间:2024/05/08 21:19:24
最好是有几个备选的

要最简单的!!!!!!!!!

50到60行就可以

有题目

在线等答案,有悬赏 ,分不多,但,是一份心意。

本程序是个列队的例子
#include<stdio.h>
#include<malloc.h>
#include<string.h>
#define QUE_MIN 512
#define QUE_MAX 1024
#define LEN_QUE sizeof(struct queue)
#define LEN_LTY sizeof(struct lottery)
#define PRINTF(x) printf("<<<<<<<<<<<<<<<<<<<<<<\n6+1彩票期数:%d\n本期中奖号码:%d %d %d %d %d %d+%d\n中奖分布:%s\n>>>>>>>>>>>>>>>>>>>>>>\n\n",x->number,x->no[0],x->no[1],x->no[2],x->no[3],x->no[4],x->no[5],x->no[6],x->address)
struct lottery{ /*彩票结构体*/
int number; /*期数*/
int no[7]; /*中奖号码*/
char address[21]; /*中特等奖地址*/
};

struct queue{ /*列队--列队的结构体*/
int capacity; /*容量--队列的最大容纳数*/
int front; /*前面--队列的头,出列的地方*/
int rear; /*后面