自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(22)
  • 收藏
  • 关注

原创 《代码中的软件工程》心得体会

参考资料《代码中的软件工程》https://gitee.com/mengning997/se。

2023-07-10 16:08:15 553 1

原创 高软作业4:从需求分到软件设计

Visual Studio Code远程开发功能允许用户通过SSH、容器、WSL方式连接访问远程开发环境,在本地的VScode编辑器中实现远程服务器中的开发环境配置、代码编辑、程序编译运行、程序调试等远程开发功能,从而可以使用性能强大的服务器资源、隔离开发环境、简化开发环境搭建、保证多人开发时环境一致性、便于代码共享和多版本管理等。本文将针对其“远程调试”功能(基于SSH连接)做需求分析和逆向工程分析。

2023-05-30 22:28:14 93

原创 高软作业3:深入理解Callback函数

然后主程序不是直接调用回调函数X,而是调用通用接口,并把最终需要使用的回调函数X作为参数传给通用函数模块,然后通用函数再***“回过头”***调用相应的函数X,于是将这些函数称作“回调函数”(Callback Function)。如果用户想使用其它判定方式,比如搜索命令菜单中描述信息的部分内容,可以实现新的回调函数,然后作为参数传递给SearchLinkTableNode,而不必改动SearchLinkTableNode 的内部代码,从而保证该模块的通用性。输入命令“quit”,执行到断点,然后单步执行。

2023-04-02 22:47:59 142

原创 windows&ubuntu装机心得(未完)

文章目录1. 安装顺序1.1虚拟机试用1.2 Windows->Ubuntu2. 资源工具2.1 windows镜像2.2 winPE2.3 Ubuntu镜像2.4 启动盘制作工具2.5 分区工具3. 准备工作3.1 硬盘基础知识3.2 数据备份3.3 硬盘分区4. U盘安装法4.1 文件系统类型4.2 多重启动盘制作4.3 启动区隐藏5. 硬盘安装法5.1 Ubuntu5.1.1 准备启动文件5.1.2 配置引导菜单5.1.3 安装选项5.2 Windows6. 激活方法6.1 KMSpico6..

2023-03-23 15:30:24 349

原创 Linux验证数据完整性

1.常用3种方法(1).sig签名文件(2)计算MD5值(3)计算SHA1值2.使用.sig文件验证(1)安装GPG(2)准备目标文件及签名文件.sig(3)检查指令格式gpg --verify 签名文件 目标文件;例如gpg --verify Xboard-4.4.2.tar.gz.sig Xboard-4.4.2.tag.gz(4)导入公钥根据提示的公钥信息,输入公钥gpg --recv-keys xxxxxxx(5)指定公钥服务器(可选)如果由于缺失服务器而找不

2021-01-27 21:22:04 611

原创 leetcode 93.复原ip地址

易错点 截取表头子串cur时,下标不能越界!!! index<s.size()&&index<3; cur若含有前导0务必立马舍弃,不能用stoi及to_string()去除前导零.有前导零== size>1 && s[0]=='0';单独的"0"不算 用substr()截取子串时务必确认起始位置不越界,否则会抛出out_of_ra...

2020-01-08 14:28:12 28

原创 leetcode 150. 逆波兰表达式求值

易错点!!!转换数值时切记在返回时输出符号!!! 栈是逆序的!!!第一个栈顶元素作为第二个运算数,第二个栈顶元素作为首个运算数tips:若字符串首个元素是“-”且字符串长度>1,可以判断为负数 链栈结构与单链表结点相同,可以用typedef为stack和linkNode两种名称做区分 四则运算时,取栈顶两个操作数和压入运算结果是共用操作,可以分别放在swich外部的首尾;分支结构进...

2019-11-04 11:15:56 36

原创 洛谷 1038 统计单词数

#include <iostream>#include <cstring>using namespace std;int main(){ int temp,ori,num,i; //temp用来保存临时起点,ori表示第一个单词首字母下标 char str[1000001] ,word[11]; temp=ori=-1; num=i=0; //...

2019-10-14 12:34:12 52

原创 洛谷 1482 Cantor表

题目描述现代数学的著名证明之一是Georg Cantor证明了有理数是可枚举的。他是用下面这一张表来证明这一命题的:1/1 1/2 1/3 1/4 1/5 …2/1 2/2 2/3 2/4 …3/1 3/2 3/3 …4/1 4/2 …5/1 …… 这次与NOIp1999第一题不同的是:这次需输入两个分数(不一定是最简分数),算出这两个分数的积(注意该约分的要约分)后输...

2019-10-14 12:25:26 39

原创 洛谷 2084 二至九进制转化为十进制

题目描述进制转换,比如(10101)2 ,十进制表示的式子:1*2^4+0*2^3+1*2^2+0*2^1+1*2^0,那么请你编程实现,将一个M进制的数N转换成十进制表示的式子。注意:当系数为0时,该单项式要省略。输入格式两个数,M和N,中间用空格隔开。输出格式共一行,一个十进制表示的式子。输入输出样例输入2 10101输出1*2^4...

2019-10-14 12:04:33 51

原创 洛谷 1036 选数

在一个包含n个元素的数组中,选取和为质数的k个元素(k<n),有多少选法 #include <iostream> using namespace std; int num[21]; bool IsPrime(int a) { if(a<2)return false; for(int i=2;(i*i)<=a;++i) if(a%i...

2019-10-14 11:32:37 26

原创 洛谷 1008 三连击

求3个三位数i、j、k,j=2*i,k=3*i,而且i、j、k中1-9每个数字出现一次#include <cstdio>int main(){ int j,k; int num[10]={0}; for (int i=123;i*3<=987;i++)//i,j,k分别为三个三位数,其中j,k分别是i的2倍、3倍 { //记录数组置0初始化;这里非常关键!!...

2019-10-14 11:07:41 31

原创 杭电 1003 最大连续子数组之和

#include <iostream>using namespace std;int main(){ //以终为始,需要输出哪些数据? //结构及记录:样例数test,记录数组num[100001] //输出数值:和最大的连续子数组起点low、终点high、数值和max; //动态辅助数值:当前子数组的起点ori、动态和sum; ...

2019-10-14 10:49:04 24

原创 杭电1002 大数相加

Problem DescriptionGiven two integers A and B,your job is to calculate the Sum of A + B.InputThe first line of the input contains an integer T(1<=T<=20) ,which means the number of tes...

2019-10-14 10:16:13 28

原创 leetcode 75. Sort Colors

Given an array with n objects colored red, white or blue, sort them in-placeso that objects of the same color are adjacent, with the colors in the order red, white and blue.Here, we will use the i...

2019-10-14 09:40:24 28

原创 leetcode 21. Merge Two Sorted Lists

ListNode* mergeTwoLists(ListNode* l1, ListNode* l2) { //special cases? if( !l1 && !l2 ) return NULL; //create a he...

2019-09-30 10:47:27 34

原创 leetcode 14. Longest Common Prefix

Write a function to find the longest common prefix string amongst an array of strings.If there is no common prefix, return an empty string "".Example 1:Input: ["flower","flow","flight"]Output: ...

2019-09-30 10:41:15 30

原创 leetcode 7. Reverse Integers

case1:x<0,tmp=-x,flag=1; if(ans-1>INT_MAX)return0;ORreturn-anscase2:x>=0,flag=0; if(ans>INT_MAX)return0;ORreturnansint reverse(in...

2019-09-30 09:27:23 36

原创 leetcode 968. Univalued Binary Tree

A binary tree is univalued if every node in the tree has the same value.Return trueif and only if the given tree is univalued.来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/univalued-binary-...

2019-09-30 09:13:03 32

原创 leetcode 108. Convert Sorted Array to Binary Search Tree

取数组[left,right]中间点mid=(left+right)/2作为根结点,并将原数组划分为[left,mid-1],[mid+1,right]两个子数组。将两子数组递归结果赋值给根的左右指针域。*注意,双分支递归不宜直接改用循环。

2019-09-28 09:13:17 27

原创 leetcode 111. Minimum Depth of Binary Tree

这题不能只将104求最大深度的代码改成小于号,即int minDepth(TreeNode* root){ if(!root) return 0; int left=minDepth(root->left); int right=minDepth(root->right); return 1+(left<right?left...

2019-09-28 09:03:52 24

原创 leetcode 103.Binary Tree Zigzag Level Order Traversal(C语言实现)

Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).For example:Given binary tre...

2019-09-28 08:33:26 27

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除