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
By this:
S[i] = S[(i-32)];
I think you mean this:
S[i] = S[i] - 32;