At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
here's the assignment: http://dl.dropbox.com/u/23228237/hw3.rtf here's my code: http://dl.dropbox.com/u/23228237/hw3.cpp here's the datafile: http://dl.dropbox.com/u/23228237/datafile.txt i'm on step 3. you can see my attempt at creating the basepay function (under the class Records) though i'm not really sure as to how i'm supposed to go about doing that with the vector and all. then in the main program when i try to execute it (right before closing the datafile towards the end) -- that i'm pretty sure i can't be doing properly either because for one thing it doesn't print anything, so i don't know what it's doing, if anything, but the program builds and compiles fine with zero errors.
oh should i put it in a constructor? god damn it
what the hell are you talking about
Are you talking to yourself? :)
It looks to me like you are attempting to call your basepay function with this call: recordlist[i].basepay(employee.hours,employee.rate) however basepay is a (albiet commented out) variable in the records class. Try passing your function the hours and rate like this: for (int i=0; i