Mar 30, 2014 at 2:46am
Are you getting errors or something?
Mar 30, 2014 at 3:10am
its not outputting anything
Mar 30, 2014 at 4:47am
U are doing some non-standard and bad practices here :
Do not use global variables
main()
should be int
U should not loop through eof()
Can you show what should be the output and what does animals.dat
looks like
Mar 30, 2014 at 1:22pm
This is the animals.dat file
tiger
dog
racoon
zebra
aardvark
hippopotamus
cat
and it should print out
tttttttttttttttttttt
iiiiiiiii
iiiiiiiii
ggggggg
ggggggg
ggggggg
eeeee
eeeee
eeeee
eeeee
rrrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrr
dddd
ooooooooooooooo
ooooooooooooooo
ggggggg
ggggggg
ggggggg
rrrrrrrrrrrrrrrrr
etc.etc.etc
and so on out professor said to loop through the file one char at a time and operating on to each on printing it out.