Click here to Skip to main content
15,890,282 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralC3160, __gc and pointers Pin
Fernando A. Gomez F.23-May-05 12:00
Fernando A. Gomez F.23-May-05 12:00 
GeneralRe: C3160, __gc and pointers Pin
PJ Arends23-May-05 19:22
professionalPJ Arends23-May-05 19:22 
GeneralRe: C3160, __gc and pointers Pin
Fernando A. Gomez F.24-May-05 4:25
Fernando A. Gomez F.24-May-05 4:25 
Generalgetting list of time zones Pin
pnpfriend23-May-05 11:00
pnpfriend23-May-05 11:00 
GeneralRe: getting list of time zones Pin
ThatsAlok23-May-05 18:11
ThatsAlok23-May-05 18:11 
General__int64 problems Pin
Anonymous23-May-05 10:53
Anonymous23-May-05 10:53 
GeneralRe: __int64 problems Pin
Anonymous23-May-05 11:12
Anonymous23-May-05 11:12 
GeneralRe: __int64 problems Pin
nm_11423-May-05 16:28
nm_11423-May-05 16:28 
cout doesn't overload the << operator with __int64 (I think because __int64 is a MS VC++ feature, not part of the C++ standard).
You can use _i64toa() to print them. Or if you want it to work with cout the following seems to work fine:

std::ostream& operator<< (std::ostream& ostrm, __int64 i)
{
	char szBuff[65];
	_i64toa(i, szBuff, 10);
	return ostrm << szBuff;
}

int main(int argc, char* argv[])
{
	__int64 i = 9223372036854775807;
	std::cout << "i = " << i << std::endl;
	return 0;
}

GeneralCluster, Generic Application, Command Prompt Pin
Sederik23-May-05 9:22
sussSederik23-May-05 9:22 
GeneralRe: Cluster, Generic Application, Command Prompt Pin
David Crow23-May-05 10:05
David Crow23-May-05 10:05 
GeneralRe: Cluster, Generic Application, Command Prompt Pin
Sederik23-May-05 23:11
sussSederik23-May-05 23:11 
GeneralXML Parser Pin
elapid23-May-05 9:22
elapid23-May-05 9:22 
GeneralRe: XML Parser Pin
Christian Graus23-May-05 12:03
protectorChristian Graus23-May-05 12:03 
Generalglobal variables Pin
Anonymous23-May-05 8:18
Anonymous23-May-05 8:18 
GeneralRe: global variables Pin
David Crow23-May-05 9:02
David Crow23-May-05 9:02 
GeneralRe: global variables Pin
Jack Puppy23-May-05 10:07
Jack Puppy23-May-05 10:07 
GeneralRe: global variables Pin
Chris Losinger23-May-05 10:35
professionalChris Losinger23-May-05 10:35 
GeneralRe: global variables Pin
Anonymous24-May-05 5:26
Anonymous24-May-05 5:26 
GeneralMySQL Help Pin
talkster523-May-05 8:10
talkster523-May-05 8:10 
GeneralRe: MySQL Help Pin
Christian Graus23-May-05 12:09
protectorChristian Graus23-May-05 12:09 
GeneralRe: MySQL Help Pin
talkster523-May-05 12:49
talkster523-May-05 12:49 
GeneralRe: MySQL Help Pin
Christian Graus23-May-05 13:17
protectorChristian Graus23-May-05 13:17 
GeneralRe: MySQL Help Pin
talkster523-May-05 22:19
talkster523-May-05 22:19 
GeneralRe: MySQL Help Pin
Christian Graus24-May-05 11:36
protectorChristian Graus24-May-05 11:36 
GeneralRe: MySQL Help Pin
talkster524-May-05 11:51
talkster524-May-05 11:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.