Hàm đổi những kí tự đầu tiên của mỗi từ thành chữ in hoa

void chuhoadau(char *s)
{
s[0]=toupper(s[0]);
while(strstr(s," ")!=NULL)
{
s=strstr(s," ")+1;
s[0]=toupper(s[0]);
}

}

Share this

Related Posts

Previous
Next Post »