Code:
//prototype//
void load_array_from_file(FILE* fp, int quote[], char roomletter[],
int length[], int width[], char paint[], char ceiling[],
double cost[], double setup_cost[],
int* plines_in_file);
//main//
main(){
int* poption;
FILE* fp;
int quote, length, width;
int* plines_in_file;
char roomletter, paint, ceiling;
double cost, setup_cost;
load_array_from_file(*fp, quote[], roomletter[], length[], width[], paint[], ceiling[], cost[], setup_cost[], *plines_in_file);
}
//function//
void load_array_from_file(FILE* fp, int quote[], char roomletter[],
int length[], int width[], char paint[], char ceiling[],
double cost[], double setup_cost[],
int* plines_in_file){
fp = fopen("C:/Users/ASDF/Desktop/A/quotes.txt","r");
if(fp == NULL){
printf("Error\n");
}
else{
fscanf(fp, "%d,%[^:],%d,%d,%[^:],%[^:],%lf,%lf", quote, roomletter, length, width, paint, ceiling, cost, setup_cost);
printf("%d,%[^:],%d,%d,%[^:],%[^:],%lf,%lf",quote, roomletter, length, width, paint, ceiling, cost, setup_cost);
}
}
So there error code I get is: