longlong专题

CString.Format处理longlong数据类型

CString curT="20171204105200",str; long long val=_tstoi64(curT); str.Format("%I64d",val);

pat 34 乙级 有理数四则运算最后两个测试点 不仅longlong坑你一把 也可能是abs绝对值

#include<stdio.h>#include<math.h>long long int gcd(long long a, long long b) //求最大公约数{if (a%b == 0) return b;else return gcd(b, a%b);}void huajian(long long *a, long long *b){long long t = abs(g