Jump to content
  • Advertisement

Archived

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

vaneger

cout problems

This topic is 5772 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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!