excuse me but i wrote this code for it could u cheek it pleaze
#include<iostream.h>
int binarysearch (const int [],int , int );
const int arraysize=10 ;
int a[arrayaize] ;
int searchkey;
for (counter=0;counter<arraysize;counter++ )
a[counter]=2(counter)+1;
cout<< "enter your search key : " ;
cin>> searchkey ;
idont know what am i sould donig right now could u help me??