if(string[i]==g)
string[i]=string[i]-32;
string[i]=string[i]-32;
#include<stdio.h>
#include<string.h>
int main()
{
char string[150]="good on great it glant one ";
char *p=string;
while(1)
{
p = strtok(p,"Gg");
if(p!=NULL)printf("g%s\n",p);
else break;
p =NULL;
}
return 0;
}
//要熟悉和充分利用C的库函数,以收事半功倍之效