This loop works just dandily (dandily?)
However its evil twin does notCode:while(fin.good() && type == 'v') { fin >> type; if(type == 'v') fin >> x >> y >> z; numverts++; }
and yes type is initialized to 'v'Code:while(type == 'v') { fin >> type; if(type == 'v') fin >> x >> y >> z; numverts++; }
char type = 'v';
and even if type wasn't initialized it would simply exit the loop