- 博客(5)
- 收藏
- 关注
原创 Refactor this function to reduce its Cognitive Complexity from 40 to the 30 allowed
提交代码,报错:Refactor this function to reduce its Cognitive Complexity from 40 to the 30 allowed降低认知复杂度sonar :Cognitive Complexity of functions should not be too high1. 尽量减少打断线性代码执行的语句(如if else 、for、catch), 多层嵌套语句2. 用三目运算符替代 if else. 如果没有else分支,不用再特意替换成三目
2022-03-21 15:42:47
6838
1
原创 字符串合并问题,判断S3是否由S1和S2组成交叉构成
字符串合并问题,判断S3是否由S1和S2组成(C语言)动态递归#include<stdio.h>#include<string.h>bool isT(char str1[], char str2[], char str3[]){ int len1 = strlen(str1); int len2 = strlen(str2); int len3 = strlen(str3); if(len3 != len2 + len1) return false; if.
2021-03-22 00:36:56
608
原创 2021-01-11
如何下载免费Visual Studio Community20191.在百度上搜索visual studio选择Visual Studio产品官网并打开https://visualstudio.microsoft.com/zh-hans/products/2.点击免费Visual Studio点击免费下载,然后按步骤安装VS,选择自己需要的功能。...
2021-01-11 23:18:44
106
原创 小技巧
打字小技巧: 1.中文输入法中要清空已输入的拼音时可用:ESC,不用一个一个删除 2.VS删除本行可用:Ctrl+l 3.VS中复制本行可直接用Ctrl+c 4.VS中下移或上移本行可用:Alt+↓,Alt+↑...
2021-01-11 22:56:01
130
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人