
c语言
InAHurryv
或取诸怀抱悟言一室之内
展开
-
身份证号码判别
int check(char* str); int main(){ FILE *fp; char file_idnum[20]; if(!(fp=fopen("data.txt","r"))){ printf("cant open the doc!\n"); exit(0); } while(!feof(fp)){ fgets(file_idnum,20,fp); //...原创 2018-10-22 22:43:03 · 570 阅读 · 0 评论 -
纯c链队列 BFS DFS
#define INFINITY INT_MAX #define ElementType int #define VertexType char #define EdgeType int #define Max 50 //图的最大节点数 typedef struct QNode{ ElementType data; struct QNode * next; }QNode; typedef st...原创 2018-10-24 15:53:05 · 258 阅读 · 0 评论