其算法过程为:前提:设两数为a,b设其中a 做被除数,b做除数,temp为余数
1、大数放a中、小数放b中;
2、求a/b的余数;
3、若temp=0则b为最大公约数;
4、如果temp!=0则把b的值给a、temp的值给b;
5、返回第第二步;
#include
#include
void main(){
int divisor(int a,int b);
int mu...
分类:
编程语言 时间:
2015-01-07 18:52:19
阅读次数:
238
classTestExer1{
publicstaticvoidmain(String[]args){
intm=12;
intn=5;
System.out.println("m:"+m+"n:"+n);
//inttemp=m;
//m=n;
//n=temp;
//System.out.println("m:"+m+"n:"+n);
//m=m+n;
//n=m-n;
//m=m-n;
//System.out.println("m:"+m+"n:"+n)..
分类:
编程语言 时间:
2015-01-07 15:13:00
阅读次数:
160
//通过openRawResource获取一个inputStream对象 InputStream inputStream = getResources().openRawResource(R.drawable.temp); //通过一个InputStream创建一个Bit...
分类:
移动开发 时间:
2015-01-07 13:07:07
阅读次数:
163
1)2.7中,input的作用>>> temp=1>>> input()temp1>>> eval('temp')12)_在shell中作用>>> temp=1>>> _1
分类:
其他好文 时间:
2015-01-07 10:52:26
阅读次数:
152
Ecshop包括的文件夹有admin、api、cert、data、images、includes、js、 languages、plugins、temp、theme、wap、widget这些文件夹,和根目录下的所有.php文件。这些文件和文件夹组成了整 个ecshop。 如果从软件工程角度分析ecsh...
分类:
其他好文 时间:
2015-01-06 19:51:06
阅读次数:
216
+(UIImage*)maxSize_is64:(BOOL)is64or_640:(BOOL)is640p_w_picpath:(UIImage*)_p_w_picpath{if(is64==YES){floattemp=_p_w_picpath.size.height>_p_w_picpath.size.width?_p_w_picpath.size.height:_p_w_picpath.size.width;floata=temp/320;CGSizesize=CGSizeMake(_p_w_pi..
分类:
其他好文 时间:
2015-01-06 15:47:58
阅读次数:
122
#include
using namespace std;
int gcd(int m, int n)
{
int temp = 0;
if (m < n)
{
temp = m;
m = n;
n = temp;
}
while (0 != m%n)
{
temp = n;
...
分类:
其他好文 时间:
2015-01-05 11:11:57
阅读次数:
128
两个方案更新如下。方案一:* 下载:https://raw.githubusercontent.com/holmium/dnsforwarder/5/mac_bin/dnsforwarder* 终端:chmod +x dnsforwarder* 终端:open .* 在打开的目录中,将以下内容保存为...
分类:
其他好文 时间:
2015-01-05 00:21:03
阅读次数:
162
统计一个给定字符串中指定的字符出现的次数
#include
#include
#include
int main()
{
char source[80],dest[5];
int len_s,len_d,*count;
int temp,i,j;
while(1)
{
gets(dest);
gets(source);
if (strcmp(dest,"#")==...
分类:
其他好文 时间:
2015-01-04 23:08:06
阅读次数:
253