#define LENG 100 #include<stdio.h> #include<stdlib.h> int main(){ int LA[LENG]; int LB[LENG]; int *p,*q; p = (int *)malloc(LENG*sizeof(int)); q = (int *)malloc(LENG*sizeof(int)); p = LA; q = LB; char a; printf("请输入一个数组LA:"); while(1){ scanf("%d",*p++); if(a == '\n') break; } /*intf("请输入一个数组LB:"); while(1){ scanf("%d",*q++); if(a == '\n') break; } for(int i = 0;i<(sizeof(LA)/sizeof(int));i++){ printf("%d",LA[i]); } for(int j = 0;j<(sizeof(LB)/sizeof(int));j++){ printf("%d",LB[i]); }*/ return 0; }
慕仰4014902
可可wrh
相关分类