題目如下
===========================
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