代码搜索:else
找到约 10,000 项符合「else」的源代码
代码结果 10,000
www.eeworm.com/read/469329/6973270
cpp gcd.cpp
long gcd(long m,long n) //计算m,n的最大公约数
{
if(m%n==0)
return n;
else
return gcd(n,m%n);
}
www.eeworm.com/read/469157/6978583
m direction.m
function [x,v]=direction(x1,x2)
v1=p2(x1'); v2=p2(x2');
x3=x2+0.01*(x2-x1);
v3=p2(x3');
if v3>v2
x=x3;
v=v3;
else
x=x2;
v=v2;
end
www.eeworm.com/read/467642/7006476
tig test9.tig
/* error : types of then - else differ */
if (5>4) then 13 else " "
www.eeworm.com/read/467324/7009742
m metric.m
function distance=metric(x,y)
if x==y
distance=0;
else
distance=1;
end
www.eeworm.com/read/466942/7024066
m f0transp.m
% f0transp.m
function y=f0transp(x)
if (x < -1)
y=0;
elseif (x
www.eeworm.com/read/463748/7176045
m metric.m
function distance=metric(x,y)
if x==y
distance=0;
else
distance=1;
end
www.eeworm.com/read/462321/7202796
m metric.m
function distance=metric(x,y)
if x==y
distance=0;
else
distance=1;
end