c++ binary stuff

#include 
#include 
#include 
#include 

using namespace std;
int maxBinLen;
string binary( unsigned long n, int needlength );

int main()
{
    unsigned long n=33;
    unsigned long p=76;
    int binarymax = 20;
    int np  = n & p;
    int x   = n ^ p;
    int s   = n | p;
    int bitshift = n << 1;
    cout<<"--------------=======---------------"<>= 1); //right bitwise operator
    str=string(resultArray + index );
    int strlen=str.length();
    for(int i=0;i<=(needlength-strlen)-1;i++)
        {strBin=strBin+"0";}
        strBin=strBin+str;
  return strBin;  //is this format something to do with returning a string??
}