幽乐美

导航

2011年12月21日 #

括号配对

摘要: 感谢焦大侠!!!! 阅读全文

posted @ 2011-12-21 15:25 幽乐美 阅读(138) 评论(1) 推荐(0)

2011年12月20日 #

请赐教,一直WA,

摘要: #include<stdio.h>#include<stdlib.h>int Stack(char*str){ int top=-1; char s[100],*p,c; for(p=str;*p;p++) { if(*p=='('||*p=='[') s[++top]=*p; else if(*p==')'||*p==']') { if(top==-1) return 0; c=s[top--]; if(c!='('&&*p==')'||c!='[& 阅读全文

posted @ 2011-12-20 15:56 幽乐美 阅读(111) 评论(2) 推荐(0)

2011年12月18日 #

a+b problem

摘要: #include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); printf("%d",a+b);} 阅读全文

posted @ 2011-12-18 16:15 幽乐美 阅读(126) 评论(1) 推荐(1)