代码搜索:SWAP
找到约 10,000 项符合「SWAP」的源代码
代码结果 10,000
www.eeworm.com/read/274718/10856301
cpp 4_10.cpp
#include
using namespace std;
int gcd(int m, int n) //返回m 和n最大公约数
{ if (m0) { int r=m%n; m = n; n = r; }
return m;
}
class Ratio
{ public:
R
www.eeworm.com/read/469754/6926282
cpp 2674.cpp
//老实算的 TLE
#include
#include
using namespace std;
char s[1000];
void sw(char *list,int n)
{
int i,j;
for(i=0,j=n-1;i
www.eeworm.com/read/451644/7458814
txt rtflsp.txt
Function RTFLSP(X1, X2, XACC:real):real;
Label 99;
var
XL,XH,SWAP,FL,FH,RTF,DX,F,DEL:real; J,MAXIT:integer;
begin
MAXIT:=30;
FL:=FUN(X1);
FH:=FUN(X2);
If FL * FH > 0 Then
www.eeworm.com/read/199432/7854236
txt rtflsp.txt
Function RTFLSP(X1, X2, XACC:real):real;
Label 99;
var
XL,XH,SWAP,FL,FH,RTF,DX,F,DEL:real; J,MAXIT:integer;
begin
MAXIT:=30;
FL:=FUN(X1);
FH:=FUN(X2);
If FL * FH > 0 Then
www.eeworm.com/read/143957/12827519
h utility.h
//public function
double power(double f,int n);
int binSearch(int x,int *v,int n);
void swap(int *v,int i,int j);
void quicksort(int *v,int left,int right);
void qsort2(int *v,int left,int right,
www.eeworm.com/read/139776/13133654
c rtflsp.c
#include
#define MAXIT 30
float rtflsp(float (*func)(float), float x1, float x2, float xacc)
{
void nrerror(char error_text[]);
int j;
float fl,fh,xl,xh,swap,dx,del,f,rtf;
fl=(*func)(x
www.eeworm.com/read/264889/11295808
cpp 4_10.cpp
#include
using namespace std;
int gcd(int m, int n) //返回m 和n最大公约数
{ if (m0) { int r=m%n; m = n; n = r; }
return m;
}
class Ratio
{ public:
R
www.eeworm.com/read/156798/11770921
txt rtflsp.txt
Function RTFLSP(X1, X2, XACC:real):real;
Label 99;
var
XL,XH,SWAP,FL,FH,RTF,DX,F,DEL:real; J,MAXIT:integer;
begin
MAXIT:=30;
FL:=FUN(X1);
FH:=FUN(X2);
If FL * FH > 0 Then
www.eeworm.com/read/257586/11920238
c sort.c
#include
#include "math.h"
void swap(int *a,int *b)
{
int c = *a;
*a = *b;
*b = c;
}
//简单选择排序
void SelectSort(int r[],int n)
{
int i,j,k,t;
for (i=0;i
www.eeworm.com/read/132006/14113700
txt rtflsp.txt
Function RTFLSP(X1, X2, XACC:real):real;
Label 99;
var
XL,XH,SWAP,FL,FH,RTF,DX,F,DEL:real; J,MAXIT:integer;
begin
MAXIT:=30;
FL:=FUN(X1);
FH:=FUN(X2);
If FL * FH > 0 Then