摘要:
#include <stdio.h>#define N 16typedef struct{ char num[10]; int s;} STREC;int fun( STREC *a, STREC *b ){ int i; int j = 0; int k = 0; for (i = 0 ;i < 阅读全文
摘要:
#include <stdio.h>char * sushu(int a){ int i; if (a == 1||a == 2) return "是素数"; for (i = 2;i < a; i++) { if (a%i == 0) return "不是素数"; if (i == a - 1) 阅读全文
摘要:
程序如下 #include <stdio.h>typedef struct list{ int data; struct list *next;} LIST;int fun(LIST *h){ LIST *p; int t = 0;//初始值不给的话会出现很离奇的错误! p=h; while( p 阅读全文