the program is supposed to ask the user for the length of what they wish to type and the program would recive it as an array then make all the letters to uppercase then out put the array with all caps and all spaces
I am just looking for a hint i will admit this is homework but i'm not understanding the problem with the program as i've searched online ,in the archives, and have tried to fix it many different ways.
MiiNiPaa it has to be an array saddly. i would love to use string and be done with it.
Yanson your help almost compleatly fixed the problem, when i enter the int for length say 8 and then for the string type "what what" it prints "WHAT WH"
this is going to sound dumb but why is that? w(1)h(2)a(3)t(4) (5)w(6)h(7)a(8)t(9) why wouldn't it be 9? i need to take my time when counting... thinking it would be 8.
What do you mean by "always correct"? I pointed out how c-string are working. If you want to get rid of length, you need to use dynamic storage, like std::string, or make something similar.