So i have a program that should spit out a list of letters and numbers depending on the word in the file.
like if the first word is dog it should print out
dddd
ooooooooooooooo
ooooooooooooooo
ggggggg
ggggggg
ggggggg
because d is the first letter in the word and then 4 letters in the alphabet and o is the second letter in the word and then 15 in the alphabet and g is third letter and 7th in the alphabet. I have some code wich might be wrong but here it is
You have a global "num" variable in there that is confusing you. You need to get rid of it. The reason you aren't seeing any output is because you are trying to print 'num' elements, and 'num' is zero.
I haven't completely fixed your code, but this should help you along.