摘要: #include #include #include #define MAX 100char stack[MAX];int top=-1;void fun( char a[],char b[]){ int i,len,j; len=strlen(a); j=-1; for(i... 阅读全文
posted @ 2014-08-22 16:56 cnyali 阅读(233) 评论(0) 推荐(0) 编辑
摘要: /*Author:Cnyali*/#include#include#include struct point{ //结点结构 ; long key,first; //key为权值,first为优先值; struct po... 阅读全文
posted @ 2014-08-22 16:55 cnyali 阅读(113) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#define MAXN 101char s[MAXN];int calac(int L, int R){ int i, p = -1, lv = 0; int m = 0; for (i = L; i <= ... 阅读全文
posted @ 2014-08-22 16:46 cnyali 阅读(134) 评论(0) 推荐(0) 编辑