How do I detect end of file when reading from a file. I have tried cin.eof(), but I think this is only for reading from keyboard input.
Also, does c++ automatically detect white space when reading files or is it ignored?
Thank you all,
dnnymak
I am trying to read a .pgm file into an array. The code I was given has the following variable declaration:
int **image;
what does the "**" mean before image?
thanks,
Dnnymak
I am trying to create a class that does a Dot-product; it returns an x, y and z value for a vector. I have implemented it so that I have to call it 3 times to get each value. Very inefficient!
Can I return an array from a class? I have been able to read an array into my class, but can't figure...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.