CISC181 honors, 02/21/06 Our datafile, radiohead.csv is courtesy of Chrissy Zlogar---thanks! We want to read this file into an array of structs. readRadioHead.cc To customize your emacs, you can edit a file call .emacs My file is hopefully readable... look at: more ~pconrad/.emacs We compiled an early version of our program that had just the opening comment, the struct declaration, and a main like this one: int main(void) { return 0; } We call this kind of function a "stub". It doesn't do anything, but it allows us to compile and check for syntax errors "early" in the process. If you get the error message: > make readRadioHead CC -o readRadioHead readRadioHead.cc "readRadioHead.cc", line 38: Error: Taking address of the bound function std::ios::eof() const. 1 Error(s) detected. *** Error code 1 make: Fatal error: Command failed for target `readRadioHead' > This typically means that you forgot the () on a function call. For example: wrong: if (!infile.eof) correct: if (!infile.eof())