- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 C++运算符重载和模板
#include using namespace std; template struct Point{ T x, y; Point (T x = 0, T y = 0) : x(x), y(y) {} }; template Point operator +(const Point& A,const Point& B){ return Point(A.x + B.x, A.y
2016-02-22 14:40:54 782
原创 文件读写和输入输出重定向
文件读写#include #include #define INF 1000000000 int main(){ FILE *fin, *fout; fin = fopen("data.in","rb"); fout = fopen("data.out","wb"); int x, n = 0, min = INF, max = -INF, s = 0; while(fscanf(fin
2016-02-20 14:54:08 814
C++ Templates
2015-11-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人