Here is my problem.
I'm using calloc (can switch it to malloc) to make a struct into a malloc array. The value of the array comes from the input.txt file. However, i get an a few errors using Microsoft Visual Studios 2010
'auctions': illegal use of this type as an expression
'auc_val': undeclared identifier
TEXT FILECode
15 25 200
3 10
17.99 22.99 109.99
C CODECode
// INCLUDES
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// STRUCTS
typedef struct{
double price;
int bidder;
}auctions;
// FUNCTIONS
// MAIN
int main(){
// VARIABLES
//other
int i;
//tickets
double presale_cost, door_cost;
int presale_sold;
//auctions
double auction_price, auction_incro;
int auction_items;
// END VARIABLES
FILE * fi = fopen("auction.txt","r");
//tickets in
fscanf(fi,"%lf %lf %i",&presale_cost, &door_cost, &presale_sold);
//auctions in
fscanf(fi,"%i %lf",&auction_items, &auction_incro);
auctions *auc_val = (auctions*)calloc(auction_items,sizeof(auctions));
fcloseall();
system("pause");
return 0;
}