- 博客(7)
- 收藏
- 关注
转载 multiple inheritance
对二义性的检查是在访问控制检查之前进行的。#include<iostream.h>class Base_1{ public: Base_1(int x){cout<<x<<"->Base_1 构造函数.\n";} ~Base_1(){cout<<"Base_1 析构函数.\n";} };class Base_2{...
2019-09-22 23:15:07
131
转载 开始学C++,继承这块练练手
#include<iostream>#include<map>#include<string>using namespace std;class Card{ public : Card(){id=0;} Card(int _id){ id=_id; } ~Card(){} Card(const Card& objec...
2019-09-22 23:15:06
85
转载 凸包
写了好久,还是不甚明白#include<math.h>#include<stdio.h>#include<algorithm>using namespace std;struct point{ double x; double y;};point s[102],dian[102];int n;double chacheng2(point p0...
2019-09-22 23:15:05
83
转载 Mysql 5.0的安装与设置
修改root密码 mysqladmin -u root password 新密码转载于:https://www.cnblogs.com/dongdong234/archive/2012/10/16/2726145.html
2019-09-22 23:15:04
98
转载 二维迷宫
今天开始接触广搜,搞了半天还是不甚明白,于是找了一题练练手.#include<iostream>#include<string>using namespace std;char a[100][100]; // 符号int a1[100][100]; // 步数int b[100][100];// 是否遍历过int n,m,t1,t2;int que...
2019-09-22 23:15:02
347
转载 1533简单深搜
#include<stdio.h>#include<string.h>char tian[101][101];int a[101][101];int fx[8][2]={{1,1},{1,-1},{-1,1},{0,1},{0,-1},{1,0},{-1,0},{-1,-1}};int m,n;void dfs(int c,int d)...
2019-09-22 23:15:00
90
转载 最小公倍数
求两个正整数的最小公倍数和最大公约数,很郁闷。 #include<stdio.h> /*求最大公约数*/ int gcd(int a,int b) { int c; c=a%b; while(c!=0) { a=b;b=c;c=a%b; } re...
2019-09-22 23:14:58
5219
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人