代码搜索:binarysearch
找到约 312 项符合「binarysearch」的源代码
代码结果 312
www.eeworm.com/read/370596/9593005
java ex22.java
// arrays/Ex22.java
// TIJ4 Chapter Arrays, Exercise 22, page 786
// Show that the results of performing a binarySearch() on an
// unsorted array are unpredictable.
import java.util.*;
import net
www.eeworm.com/read/414988/11087708
java ex22.java
// arrays/Ex22.java
// TIJ4 Chapter Arrays, Exercise 22, page 786
// Show that the results of performing a binarySearch() on an
// unsorted array are unpredictable.
import java.util.*;
import net
www.eeworm.com/read/269231/11104290
java sample5_15.java
import java.util.*;
public class Sample5_15
{
public static void main(String[] args)
{
//创建数组
int[] a={1,3,4,5,7,8,9,12,13,15,19,21,23,24,25};
//搜索指定的值
int indexof4all=Arrays.binaryS
www.eeworm.com/read/335542/12517338
cpp buggedsearch.cpp
//: C02:BuggedSearch.cpp {-xo}
// From "Thinking in C++, Volume 2", by Bruce Eckel & Chuck Allison.
// (c) 1995-2004 MindView, Inc. All Rights Reserved.
// See source code use permissions stated in
www.eeworm.com/read/248151/12593072
java arraysearch.java
import java.util.*;
class ArraySearch{
public static void main(String args[]){
int a[]={2,4,5,7,9};
int key,pos;
key=5;
pos=Arrays.binarySearch(a,key);
if(pos
www.eeworm.com/read/135748/13903081
cpp main.cpp
//************ main.cpp *************
# include
using std::cout;
using std::cin;
using std::endl;
# include "BinarySearch.h"
int main()
{
int arraySize;
www.eeworm.com/read/300492/13909875
cpp buggedsearch.cpp
//: C02:BuggedSearch.cpp {-xo}
// From "Thinking in C++, Volume 2", by Bruce Eckel & Chuck Allison.
// (c) 1995-2004 MindView, Inc. All Rights Reserved.
// See source code use permissions stated in
www.eeworm.com/read/133648/14031632
java arraysearching.java
//: c09:ArraySearching.java
// From 'Thinking in Java, 2nd ed.' by Bruce Eckel
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
// Using Arrays.binarySearch().
import com.bruceeckel.u
www.eeworm.com/read/204469/15338900
cpp p231.cpp
#include "iostream.h"
#include "p228.cpp"
template class OrderedList : public DataList {
public:
OrderedList ( int sz = 10 ) : DataList (sz) { }
virtual
www.eeworm.com/read/113072/15471103
txt 580.txt
Function 语句
Microsoft® Visual Basic® Scripting Edition
Function 语句
语言参考
版本 1
请参阅
描述
声明 Function 过程的名称、参数以及构成其主体的代码。
语法
[Public | Private] Function name [(arglist)]
[stat