close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
Eventbrite makes it happen

Create an event and sell tickets online through Eventbrite. It's simple! Sign up and get started today.
From our sponsors
c語言程式問題
Sep 10th 2014, 04:16

#include
#include
#include
void letterconvert(char*);
int main(void)
{
char *ptr="AbcdEFgHijKLmn"; /* 定義原字串 */
int i;

printf("原字串 %s\n",ptr);
for (i=0;iletterconvert(ptr+i);
printf("新字串 %s\n",ptr);

system("pause");
return 0;
}

void letterconvert(char *a)
{
if ((int)*a*a+= 32;
else
*a-= 32;
}

此程式碼我不管怎麼改都沒辦法轉大小寫子母,請大大幫我解答一下(3Q)

This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜
    創作者介紹

    winstonje 發表在 痞客邦 留言(0) 人氣()