标签:ring iostream str cstring log out using ios return
#include <iostream> #include <algorithm> #include <cstring> #include <cmath> using namespace std; int f(int a, int b) { int i; for(i=a;;i+=a) //确保是a的倍数 { if(i%b==0) return i; //确保是b的倍数 } } int main() { cout << f(3,5); return 0; }
标签:ring iostream str cstring log out using ios return
原文地址:http://www.cnblogs.com/xieyupeng/p/7777667.html