This seems to work.

#include <iostream>
#include "integer.h"
USING_NAMESPACE(std)
int main()
{
        CryptoPP::Integer a(10), b(20),c ;
        c = a + b ;
        cout << c << endl;
        return 0;
}

result:

30.

Ashraf AbuSharekh wrote:
> 
> hi
> i just begun using crypto++, i am trying to  print Integer to the screen
> using the operator << and get this error
> error C2678: binary '<<' : no operator defined which takes a left-hand
> operand of type 'class ostream_withassign' (or there is no acceptable
> conversion)
> the code
> 
> #include <iostream.h>
> #include <integer.h>
> int main()
> {
>         CryptoPP::Integer a(10), b(20),c ;
>         c = a + b ;
>         cout << c << endl;
>         return 0;
> }
> if anyone could tell me how to output integer to stdout
> 
> _________________________________________________________________
> The new MSN 8: advanced junk mail protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail

-- 
//
//  Peter L. Bell         [EMAIL PROTECTED]
//                        +61 2 9805 2955
//  Blessed are the Peacemakers, they shall be called Sons of God.
//

Reply via email to