Traitement-signal-plantes/C-Script/getArray.c
2022-05-05 16:40:03 +02:00

28 lines
449 B
C

#include "b2hd.h"
typedef struct values
{
int allValues[1000][8];
}values;
values getArray(){
values tab;
int b=1;
char *token;
char buff[256];
fscanf(stdin, "%s", buff)
token = strtok(buff , ",");
int i = 0 ;
int j = 0 ;
while(token!=NULL){
t[j][i] = atoi(token);
token = strtok(NULL,",");
i++;
if(i==8){
j++;
i=0;
}
}
return tab;
}