View Single Post
  #2 (permalink)  
Old October 13th, 2004, 09:44 PM
TheShadow TheShadow is offline
Registered User
 
Join Date: Oct 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

struct car
{
char rego[6];
char make[15];
char model[10];
char colour[15];
int cap[4];
int doors[1];
int costp[6];
int sellp[6];
};


void main()

ifstream fin;

for(x = 0; x++; x > 11 || x = EOF;)
    ifstream fin("cars.dat");
    fin >> car.rego >> car.make >> car.model >> car.colour >> car.cap >> car.doors >> car.costp >> car.sellp >>endl;

Reply With Quote