Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
有關C語言的一些基本問題
Jul 21st 2013, 06:08

最近剛接觸VS C++
有很多基本的問題都還不知道
我不怕被笑 但我一定得弄清楚這些問題
以下是我目前所遇到的瓶頸:

void main()
{
int i,sum;
i=1;
sum=0;
do {
sum+=i;
i++;
} while(i<=10);
printf("1+2+...+10=%d\n",s);
}

------------------------------------------

1.main()是什麼??它應該在什麼時候出現??為什麼有時候有void 有時候又沒有??
2.int是什麼??它是做什麼的??
3.printf是輸出的意思嗎??它跟cout有什麼不同??
4.%d\n又是什麼??後面的s又代表什麼意思呢??

希望大家能幫忙解答 謝謝

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. Five Filters recommends: 'You Say What You Like, Because They Like What You Say' - http://www.medialens.org/index.php/alerts/alert-archive/alerts-2013/731-you-say-what-you-like-because-they-like-what-you-say.html

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
    全站熱搜

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