大小写转换通不过
写一个小写转换成大写的程序,编译不过去,大神帮菜鸟看看,谢谢呵呵。#include<stdio.h>
#include<string.h>
void main()
{
char array[64];
gets(array);
array = TestTransform(array);
puts(array);
}
char TestTransform(char * pcarray)
{
char * propcarray;
propcarray = pcarray;
while(*pcarray = '0')
{
if(*pcarray >= 'a'||*pcarray <= 'z')
{
*pcarray = *pcarray - 32;
pcarray++;
}
else
{
*pcarray = *pcarray;
pcarray++;
}
}
return(propcarray);
}