SHOW:
|
|
- or go back to the newest paste.
1 | - | int x=1; |
1 | + | char x='y'; |
2 | - | int item; |
2 | + | |
3 | - | while(x){ |
3 | + | |
4 | - | cout<<"Enter target (-1 to quit); "<<endl; |
4 | + | |
5 | - | cin>>item; |
5 | + | |
6 | - | binsearch( |
6 | + | |
7 | - | |
7 | + | |
8 | - | |
8 | + | |
9 | - | char x='y'; |
9 | + | |
10 | cin>>x; | |
11 | } | |
12 | ||
13 | int GCD(int m, int n) { | |
14 | if (n==0){ | |
15 | return m; | |
16 | }else { | |
17 | return GCD(n, m%n); | |
18 | } | |
19 | } |