
C++
fromy
这个作者很懒,什么都没留下…
展开
-
C++vector排序-三目运算
#include<iostream>#include<vector>#include<ctime>#include<algorithm>using namespace std;struct Point{ int x; int y;};//得到两数的最大值,方法一int GetMax1(int a, int b);//得到两...原创 2020-04-08 23:14:22 · 224 阅读 · 0 评论 -
C C++ txt文本写入与读取
#define _CRT_SECURE_NO_DEPRECATE#include<iostream>#include<fstream> //iftream, ostream#include<sstream> //streamstring#include<iomanip> //setw, setfill#include<ctime>...原创 2020-04-08 03:07:40 · 557 阅读 · 0 评论 -
C++类继承
class Point2 { public: Point2() {} Point2(const float &x, const float &y):x_(x), y_(y){} Point2(const Point2& p2):x_(p2.x_), y_(p2.y_){} void operator=(const Point2&...原创 2020-04-07 23:09:17 · 126 阅读 · 0 评论