2014年11月4日

括号匹配算法 C语言实现

摘要: #include #include //malloc,realloc#include //含有overflow#include //exit()#define S_SIZE 100 //栈的空间大小#define STACKINCREAMENT 10//增加空间struct ... 阅读全文

posted @ 2014-11-04 17:12 矮油~ 阅读(1979) 评论(0) 推荐(0)

已知某一天是周几 求给定的一天是周几的算法 C++实现

摘要: #includeusing namespace std;struct Date{ int year,month,day;};enum Week{MON=1,TUE,WED,THU,FRI,SAT,SUN,};int isLeapYear(int y){ if((y%4==0&&y%100!=0)||... 阅读全文

posted @ 2014-11-04 16:53 矮油~ 阅读(1202) 评论(0) 推荐(0)

导航