Name: Anonymous 2012-09-22 14:36
I try hard to avoid asking for help here, but I just can't figure this shit out.
I need to write a PPM Parser for a CS class and I am having trouble writing the image data.
It seems to read it fine, but when I write a file it writes the image 3 times on the top row.
Here is the code:
http://pastebin.com/seEp9wnU
I left out the header file.
Here is the output
http://i.imgur.com/dr7wK.jpg
Thanks for any help.
I need to write a PPM Parser for a CS class and I am having trouble writing the image data.
It seems to read it fine, but when I write a file it writes the image 3 times on the top row.
Here is the code:
http://pastebin.com/seEp9wnU
I left out the header file.
Here is the output
http://i.imgur.com/dr7wK.jpg
Thanks for any help.