跳到主文
部落格全站分類:數位生活
一個主程式呼叫副程式副程式是取兩數公因式麻煩幫我看看問題是~
#include <iostream>using namespace std;
int gcd(int a, int b);
int main(){ int c; c=gcd(int a,int b); return 0;}
副程式
#include <iostream>using namespace std;int gcd(int a, int b);
int gcd(int a, int b){ if (a==0) return b; if (b==0) return a; if (a>b) return gcd(a%b, b); else return gcd(a, b%a);}
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: Thatcher's Tyrants - The Tanks, The Guns, The Christmas Cards.
水瓶座的男生喜歡一個人 , 水瓶座的愛情配對 , 水瓶座的故事 , 2016水瓶座運勢 , 水瓶座今日運勢 , 水瓶座2016年運勢
xnmc 發表在 痞客邦 留言(0) 人氣()