10#10include15 15 02using15 02namespace15 10std; 10int15 07main(10int15 argc,15 10char**15 argv) { 15 02if15 (argc15 <15 022)15 {15 std::cout15 <<15 05"05usage: 05"15 <<15 argv[020]15 <<15 05"05 SECTORS.lmp05\n05";15 02return15 021;15 } 15 ifstream15 file(argv[021]); 15 02for15 (10int15 i15 =15 020;15 file.peek()15 !=15 EOF;15 ++i) 15 { 15 02struct15 07Sector15 { 15 10int16_t15 floor,15 ceil; 15 10char15 floortex[028],15 ceiltex[028]; 15 10int16_t15 light,15 special,15 tag; 15 }15 sector; 15 file.read((10char*)§or,15 02sizeof(Sector)); 15 cout15 <<15 05"05id: 05"15 <<15 i15 <<15 05"05\t05" 15 <<15 05"05floor: 05"15 <<15 sector.floor15 <<15 05"05\t05" 15 <<15 05"05ceil: 05"15 <<15 sector.ceil15 <<15 05"05\t05" 15 <<15 05"05floortex: 05"15 <<15 sector.floortex15 <<15 05"05\t05" 15 <<15 05"05ceiltex: 05"15 <<15 sector.ceiltex15 <<15 05"05\t05" 15 <<15 05"05light: 05"15 <<15 sector.light15 <<15 05"05\t05" 15 <<15 05"05special: 05"15 <<15 sector.special15 <<15 05"05\t05" 15 <<15 05"05tag: 05"15 <<15 sector.tag15 <<15 05"05\n05\n05"; 15 } 15 02return15 020; }