Archived

This topic is now archived and is closed to further replies.

vaneger

cout problems

Recommended Posts

quote:

Original Answer by Niyaw

_int64 isn''t a standard type
and << isn''t overloaded for it
so overload it yourself or use shlwapi or something
.....
iostream provides << overloads for standard types
_int64 isn''t standard
therefore, iostreams don''t support it.
it doesn''t matter how big or small it (the data type) is



quick answer from #NewbieNexus.
From what the info gave to me.
Vanegar shouldn''t you be there now?

Share this post


Link to post
Share on other sites

  
unsigned long m ;
__int64 n ;

m = 34567;
n = pow(2,31);

char *buffer = new char;
buffer = _i64toa( n, buffer, 10 );
m = nextPrime(m);
n = nextPrime(n * 2 );
buffer = _i64toa( n, buffer, 10 );
cout<<(*buffer)<<endl;
cout<<m<<endl;

it gives me a error and crashes when i ru it and i dont know why

Share this post


Link to post
Share on other sites