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??

We like to help people who appear to at least be attempting to help themselves.

I suspect line 7 won't even compile.

What is the code supposed to do?

What does it do now?

And there seems to missing a small detail called int main() :icon_wink:

That too...(too much Python -- you don't have to have one)

Please for Christ's sake give the complete program

What is the app meant to do?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.