小猫钓鱼C++程序

上传人:ths****59 文档编号:45249211 上传时间:2018-06-15 格式:DOCX 页数:3 大小:17.40KB
返回 下载 相关 举报
小猫钓鱼C++程序_第1页
第1页 / 共3页
小猫钓鱼C++程序_第2页
第2页 / 共3页
小猫钓鱼C++程序_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

《小猫钓鱼C++程序》由会员分享,可在线阅读,更多相关《小猫钓鱼C++程序(3页珍藏版)》请在金锄头文库上搜索。

/小猫钓鱼C+程序 #include #include“stdlib.h“ #include “stdio.h“ using namespace std; struct queue int data100; int head; int tail; ; struct stack int data100; int top; ; void main() struct queue q1,q2; struct stack s; int book10; /book0-book9,真正有用的是 book1-book9 q1.head=0; q1.tail=0; q2.head=0; q2.tail=0; s.top=0; /*初始化桌上的牌*/ int i,t; for(i=1;i0) printf(“桌上的牌是:“); for(i=1;i0) printf(“桌上的牌是:“); for(i=1;i=s.top;i+) printf(“%d“,s.datai); else printf(“桌上没有牌“); system(“pause“);

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号