编码风格工作笔记-初步模仿大佬编码风格
发布日期:2021-06-30 10:57:17 浏览次数:2 分类:技术文章

本文共 338 字,大约阅读时间需要 1 分钟。

工作8个月了,发现大佬们都喜欢这样的风格:

现在我初步进行分析下!

1.喜欢宽松的代码,不喜欢紧促的代码;

2.在某个关键的地方,喜欢敲一个换行;

 

下面来模仿下:

#include 
#include
using namespace std;int main(){ cout << "format of output!" << endl; //if format int a = 10; if(a = 100){ cout << "The a is 100" << endl; } else{ printf("The a isn't 100\n"); } return 0;}

从今天起,本人的代码风格将会以这种形式,展示出来!

转载地址:https://it1995.blog.csdn.net/article/details/83178784 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:软件设计师习题笔记-重点习题六
下一篇:C++与QML信号交互(非Q_PROPERTY法)

发表评论

最新留言

初次前来,多多关照!
[***.217.46.12]2024年04月13日 15时37分51秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章

【深度学习笔记】用torch.nn.Sequential()搭建神经网络模型 2019-04-30
【深度学习笔记】用torch.nn.ModuleList搭建神经网络 2019-04-30
【解决错误】AttributeError: module ‘scipy.misc‘ has no attribute ‘imread‘ 2019-04-30
【解决错误】复现RCAN的时候遇到了ImportError: cannot import name ‘_update_worker_pids’ from ‘torch._C’ 2019-04-30
【解决错误】ModuleNotFoundError: No module named ‘skimage‘ 2019-04-30
【深度学习笔记】pytorch的点乘(dot product) 2019-04-30
【深度学习笔记】残差 2019-04-30
【错误解决】cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\sr 2019-04-30
【python学习笔记】读取指定文件夹中的图片,结合边缘保留滤波EPF 2019-04-30
【工具和环境】Linux下安装pycharm 2019-04-30
【Accumulation】The last two sentences of the abstract 2019-04-30
【Accumulation】The definition of SISR 2019-04-30
【工具与环境】Windows下安装Sublime Text 3 2019-04-30
【解决错误】ValueError: some of the strides of a given numpy array are negative. 2019-04-30
【工具与环境】Excel中批量插入行 2019-04-30
【个人实验注意事项】 2019-04-30
【解决错误】ModuleNotFoundError: No module named ‘tqdm‘ 2019-04-30
【解决错误】ModuleNotFoundError: No module named ‘PIL‘ 2019-04-30
【学习笔记】对vanilla的一些个人理解 2019-04-30
【解决错误】json.decoder.JSONDecodeError: Expecting value: line 11 column 14 (char 82) 2019-04-30