栈
摘要:
栈Time Limit:1000MSMemory Limit:65535KBSubmissions:1021Accepted:476Description建立顺序栈或链栈,编写程序实现十进制数到二进制数的转换。Input输入只有一行,就是十进制整数。Output转换后的二进制数。Sample Input10Sample Output1010解法一:链栈# include<stdio.h>//链栈# include<malloc.h># define Len sizeof(struct node)# define N 100typedef int ElemType;typ 阅读全文
posted @ 2012-05-30 21:59 即为将军 阅读(329) 评论(0) 推荐(0)
浙公网安备 33010602011771号