__int64 (c++)

yaishb

New member
__int64 (c++)

מישהו יודע איך מדפיסים טיפוס __int64 בעזרת с++? אני מקבל error!
 

sadde1

New member
ככה

cout לא תומך ב int64__ אבל אפשר להרחיב אותו שיתמוך: תוסיף את הקוד הבא: (תעשה copy paste אפילו שהוא נראה מבולגן) #include<iostream> using namespace std; std::eek:stream& operator<<(std::eek:stream& os, __int64 i ) { char buf[20]; sprintf(buf,"%I64d", i ); os << buf; return os; } אבי
 
למעלה