以前一直用__int64来识别windows还是Linux,可是发现HDU好像不认
看到wzy用的UNIX可以。
UNIX是Linux下定义的,具体是什么可以去百度。
那么就可以
#ifdef UNIX #define LL "%lld" #else #define LL "%I64d"#endif //输出用printf(LL" ",a);//即可