- 博客(5)
- 收藏
- 关注
原创 啊啊啊
#include <iostream> using namespace std; int ans,a[7][7],b[7][7]; int check() { int sum=0; for (int i=1;i<=5;++i) for (int j=1;j<=5;++j) b[i][j]=a[i][j]; for (int i=1;i<=4;++i) for (int j=1;j<=5;++
2021-03-21 00:48:50 66
原创 2020-12-29
外部变量声明: extern 函数内创造的动态变量能传出去吗?会自动消亡吗? ctmd 太坑了 这不是人能做出来的题! ———————————————————— 对于一个类,如果没有重载输出函数,如果写了类型转换函数,比如对于A类,我们写了一个operator double() const类型转换函数,那么在输出时会自动转换为double类型进行输出。 ———————————————————— 如果在try模块中产生了报错行为,try模块内的东西全部结束,并且向catch投递错误。 ————————————
2020-12-29 22:58:15 50
原创 2020-12-17,期末机考不负责任的复习
student(const char * s,int _age,unsigned long long int _s_no,const char * _class_no):people(s,_age){ s_no=_s_no; class_no = new char [strlen(_class_no)+1]; strcpy(class_no,_class_no); cout<<"student constructor student
2020-12-17 00:08:17 111
原创 指针随笔
#include<iostream> using namespace std; int* & f(int **p); int main() { int a[]={1,2,3}; int** p; cout<<"&p"<<&p<<endl; cout<<"p"<<p<<endl;//p是一个二级指针 //cout<<"*p"<<*p&l..
2020-11-21 09:37:23 64
原创 2020.11.5随笔
作为一名大一新生,初次接触C++,希望通过写博客的形式,巩固巩固自己的知识,也希望可以有同好加QQ/vx一起学习,不废话了,直接开始吧~ 昨天做了一道BFS的题目如下 ////——————————————————————————— 输入格式 第一行为两个整数M,N(M,N不超过500) 接下里MN表示每个位置山的高度 接下里MN表示每个位置上是否有红旗 输出格式 一行一个整数,表示最打海拔差的最小值 样例输入 2 3 0 1 9...
2020-11-05 17:04:40 79
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人