用c语言编写一段程序,求两个集合的交

日期:2011-11-22 17:41:35 人气:1

用c语言编写一段程序,求两个集合的交

#include "stdio.h" #include "stdlib.h" #include "time.h" void main() { int a[5],b[8],c[5]; int i,j=0,k=0; srand((unsigned )time(NULL)); for(i=0;i<5;i++) { a[i]=rand()%3+j; j+=3; } j=0; fo
    A+
热门评论