rendered paste bodyint booktype::read(ifstream& inData){ unsigned int i=0; string code; string title; string pubcode; string type; int dollars; int cents; char paperback; inData >> code; if(code.length()<1) //handles the damn newline return 0; inData >> title; while(i < title.length()){ if(title[i]== '_') title[i]= ' '; i++; } inData >> pubcode; inData >> type; inData >> dollars; inData >> paperback; //this is to get rid of the decimal place inData >> cents; inData >> paperback; bookNode temp(code, title, pubcode, type, dollars, cents, paperback); bookData.push_back(temp); bookData.sort(); return 0;}void authorType::read(ifstream &inData){ authorNode temp; inData >> temp.authorNumber; inData >> temp.lastname; inData >> temp.firstname; authorData.push_back(temp);}