趕工失調
我在趕工寫作業之下,竟然寫出這麼GY的寫法,不太好玩...Orz
ifstream& readWavFile(char* filename, WavHeader& header){
ifstream* infile = new ifstream;
infile->open(filename, ifstream::in | ifstream::binary);
infile->read(static_cast(static_cast(&header)), sizeof(header));
return *infile;
}
---
真不懂自己為什麼會這樣子寫...Orz