Other way. .001 -> 0; .005 -> 0; .999 -> 0. double to int always truncates.
Type: Posts; User: tabstop
Other way. .001 -> 0; .005 -> 0; .999 -> 0. double to int always truncates.
It would appear you should read what a reference is.
void getfile(ifstream &fptr)
(Spacing deliberately kept to annoy Elysia. :))
You can't pass a pointer to an ifstream, I think; or at least anyway, why would you? Pass a reference. You also don't want to declare a new variable fptr inside your function (there on line four of...
You can use either FILE or fstream/ifstream/ofstream, but not both.