2013年6月9日

数据结构(C语言版)---第三章栈和队列 3.2.1 -- 3.2.3 十进制转二进制、括号合法性检测及行编辑

摘要: 主要实现了十进制到二进制的转换、对括号的合法性检测以及教材中的行编辑。分别是这三个函数:int Conver10to2(),int IsBracketLegal(char *data),int LineEdit()。具体源码如下:Main_3_2.c:#include "Stack.h"/*3.2.1*/int Conver10to2(){ int data = 0; printf("please input the num :\n"); scanf("%d",&data); while(data < 0) { prin 阅读全文

posted @ 2013-06-09 09:32 净坛使者 阅读(894) 评论(0) 推荐(0) 编辑

导航