close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
Explore DIRECTV

Enjoy HD DVR service in every room. Get every game every Sunday. Watch hit movies and shows anywhere. Bundle and save today!
From our sponsors
c++ 函數呼叫-回傳值問題
Aug 8th 2013, 05:35

題目如下
===========================
int myDice(___________)
{

int ans;
ans=25;
n=25;
return ans;
}

int _tmain(int argc, _TCHAR* argv[])
{
int a,b;

a=75;
b=75;
a=myDice(b);

printf("\n %d %d ", a, b);
system("PAUSE");
return 0;
}
程式執行後,會輸出75 75
===============================
int myDice()括弧內要填寫甚麼,輸出的值才會是75 75

我自己是輸入int myDice(int n),跑出來的結果是25 75
請問要如何修改

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
    全站熱搜
    創作者介紹
    創作者 omoss 的頭像
    omoss

    中視聶小倩線上看 , 聶小倩線上看第二集 , 聶小倩 中視 , 聶小倩電視劇 , 聶小倩

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