View Single Post
  #1 (permalink)  
Old October 13th, 2004, 08:56 PM
TheShadow TheShadow is offline
Registered User
 
Join Date: Oct 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default File to Structure?

How do i go from a file containing data, like ...

MJ914
Porsche
914-6
Irish_Green
2
2700
30000
40000

TO

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];
};

Reply With Quote