c++学习
文章平均质量分 59
Ston.V
2016年一个枯槁憔悴的春天,在华科毫无目的的浪费了一年半的时间后,我终于选定了嵌入式方向。其实这选择并不是突发奇想,当年有对智能家居,物联网感兴趣,但偶然进入软件这坑爹的专业,还好大二下开了计组,操原等课程,对底层产生兴趣,再加上计算机三级考试若干方向,又加之网课老师还不错就干脆跳坑。虽前路艰辛,愿初心不改。
2021夏天,回到华科读研,存储方向,仍然是嵌入式。是深坑但已经懒得爬出来了。
展开
-
C++中前置声明的应用与陷阱
前置声明的使用有一定C++开发经验的朋友可能会遇到这样的场景:两个类A与B是强耦合关系,类A要引用B的对象,类B也要引用类A的对象。好的,不难,我的第一直觉让我写出这样的代码:// A.h#include "B.h"class A{ B b;public: A(void); virtual ~A(void);};//A.cpp#include "A.h"A::A(void){}A::~A(void){}// B.h#inclu...转载 2021-06-24 21:16:38 · 103 阅读 · 0 评论 -
写简单code犯的弱智问题1
1.提前终止输入检测一个矩阵是否是对称矩阵我的问题code#include<bits/stdc++.h>using namespace std;const int maxn=101;int buf[maxn][maxn];int main(){ int n; while(cin>>n){ bool flag=true; for(int i=0;i<n;i++){ for(int j原创 2021-03-07 22:29:20 · 108 阅读 · 0 评论 -
[PAT A1069 数字黑洞]
[PAT A1069 数字黑洞]Description:For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decreasing order, a new number can be obtained by taking the second number from原创 2021-01-31 20:40:16 · 91 阅读 · 0 评论