Archived

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

cout problems

This topic is 5587 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts


  
	unsigned long m ;
	__int64 n ;
	m = 34567;
	n = pow(2,31);
	cout<<n<<endl;
	m = nextPrime(m);
	n = nextPrime(n * 2 );
	cout<<m<<endl;
	cout<<n<<endl;
  
the cout<

Share this post


Link to post
Share on other sites
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