代码搜索:else
找到约 10,000 项符合「else」的源代码
代码结果 10,000
www.eeworm.com/read/469416/6976141
m factorial.m
function x = factorial(n)
% FACTORIAL Compute n!
% x = factorial(n)
if n == 0
x = 1;
else
x = n*factorial(n-1);
end
www.eeworm.com/read/296774/7113441
move-if-change
#!/bin/sh
# Like mv $1 $2, but if the files are the same, just delete $1.
# Status is 0 if $2 is changed, 1 otherwise.
if
test -r $2
then
if
cmp -s $1 $2
then
echo $2 is unchanged
rm -f $1
else
mv -f
www.eeworm.com/read/165343/7143766
m nchoosektest.m
function nk = nchoosektest(n,k)
% function nk = nchoosektest(n,k)
if(k < 0 | k > n)
nk = 0;
else
nk = nchoosek(n,k);
end
www.eeworm.com/read/462731/7197362
txt ch8_7.txt
int sift(JD r[],int k,int m)
{ int i,j;
JD x;
i=k; x=r[i]; j=2*i;
while(jr[j].key)
{ r[i]=r[j];
i=j;
www.eeworm.com/read/461115/7233461
txt token.txt
main if else int return void while
= + - * / < >= !=
, ; : { } [ ] ( )
www.eeworm.com/read/458870/7286334
c 16rbsh.c
int rbsh(p,n,a,b,m)
int n,*m;
double a,b,p[];
{ int i,j,k;
i=1; j=n;
while (i=a)&&(p[k-1]
www.eeworm.com/read/455746/7366469
m cummax.m
function c=cummax(data),
c(1)=data(1);
for i=2:length(data),
if data(i)>c(i-1),
c(i)=data(i);
else
c(i)=c(i-1);
end
end
www.eeworm.com/read/450221/7488311
m tvd_rk2.m
function tvd_rk2(alldata)
% This is the Navier-Stokes solver called by the GUI "Navier2d.m"
%
% The unsteady 2D incompressible Navier-Stokes equations are integrated
% using a 2nd order finite-v