#include <stdio.h>
#include <stdlib.h>
#include<time.h>
int main(void)
{freopen(“10进制6位10首10篇10章数电子元件电路线图.txt”, “w”, stdout);
char* a[10]={“电源”,“开关”,“电灯”,“电热杯”,“变阻器”,“电感器”,“电动机”,“电流表”,“电饭锅”,“电压表”};
int i,j,k,l,m,n;
printf("\n输出10进制电子元件电路线公式\n");
srand(time(NULL)); // 种子
for(i=0;i<10;i++)
{
printf("\n\n");
for(j=0;j<10;j++)
{
printf("\n\n");
for(k=0;k<10;k++)
printf("%s%s%s%s%s%s\n",a[rand()%10],a[rand()%10],a[rand()%10],a[rand()%10],a[rand()%10],a[rand()%10],a[rand()%10]);
}
}
}