Nov 25, 2013 at 9:32pm
how would I get this to work right now all its doing is giving every value an ascii of 222 capital I with an accent.
1 2 3 4 5 6
|
void Upcase (char S[ ])
{
for(int i = 0; S[i]; ++i)
if ((S[i]>='a') && (S[i]<='z'))
S[i] = S[(i-32)];
|
Last edited on Nov 25, 2013 at 9:38pm
Nov 25, 2013 at 10:31pm
By this:
S[i] = S[(i-32)];
I think you mean this:
S[i] = S[i] - 32;