上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页
摘要: https://www.runoob.com/w3cnote/ten-sorting-algorithm.html 本系列算法整理自:https://github.com/hustcc/JS-Sorting-Algorithm 阅读全文
posted @ 2021-11-18 20:48 Theseus‘Ship 阅读(79) 评论(0) 推荐(0) 编辑
摘要: Linux-C-GetUserName code //getUserName.c #include <iostream> #include <string> using namespace std; #ifdef linux #include <unistd.h> #include <pwd.h> 阅读全文
posted @ 2021-01-08 19:52 Theseus‘Ship 阅读(213) 评论(0) 推荐(0) 编辑
摘要: Linux-C-信号未决/阻塞-BlockSig(sigset_t s) //BlockSig(SIGPIPE) void BlockSig(int sig) { sigset_t signal_mask; //设置信号集参数 sigemptyset(&signal_mask); //sigempt 阅读全文
posted @ 2021-01-08 18:10 Theseus‘Ship 阅读(129) 评论(0) 推荐(0) 编辑
摘要: TCP-ECN:设置pc的网卡设置,使ECN使能 //SetEnable.bat ::version1.0.0.1 @echo off ::先延时启动20s ::@ping -n 20 127.1>nul ::设置 netsh interface tcp set global ecncapabili 阅读全文
posted @ 2021-01-07 17:28 Theseus‘Ship 阅读(509) 评论(0) 推荐(0) 编辑
摘要: IDE- VS Code-插件-Golang 安装Golang插件 使用go mod 代理来安装 https://goproxy.io是一个国内的代理 执行 go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.io,direct 关闭 阅读全文
posted @ 2020-12-07 21:17 Theseus‘Ship 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Tool-Docker-First exploration 2020/11/30 00:19:00 之前工作中接触过Docker,最近在笔记本上想装个Vm虚拟机用,就想着来试试Docker吧。 1.Docker Hub Tutorial Docker Hub Get started by downl 阅读全文
posted @ 2020-12-02 18:28 Theseus‘Ship 阅读(169) 评论(0) 推荐(0) 编辑
摘要: #C++-Code-Time Transfer-Windows FILETIME(1601) To 1970 UTC November 28, 2020 4:56 PM 最近遇到需要进行时间转换的实现。 以下是从mongoose.c中截取的,与之后在网上找到的思路是一致的。 Function dou 阅读全文
posted @ 2020-11-28 17:00 Theseus‘Ship 阅读(292) 评论(0) 推荐(0) 编辑
摘要: Tool-git-command-入门笔记[慕课网-五月的夏天] November 26, 2020 11:45 PM 1.github新建一个仓库,名称"TestGit" create a new repository on the command line echo "# TestGit" >> 阅读全文
posted @ 2020-11-27 01:25 Theseus‘Ship 阅读(155) 评论(0) 推荐(0) 编辑
摘要: #C-当表达式中同时存在有符号和无符号的类型时,有符号类型先转为无符号参与计算 November 14, 2020 7:40 PM 今天看CPrimer时发现: /*当表达式中同时存在有符号和无符号的类型时,有符号类型先转为无符号参与计算*/ unsigned int un1 = 1; int n2 阅读全文
posted @ 2020-11-14 19:41 Theseus‘Ship 阅读(158) 评论(0) 推荐(0) 编辑
摘要: #C语言-C语言程序设计-Practice code 书上第一章的几个练习。 关于直方图有点头疼,之后再仔细研究一下。 /*1-8 统计空格、制表符、换行符个数*/ int c; int nl = 0; int nt = 0; int nb = 0; while((c = getchar()) != 阅读全文
posted @ 2020-11-14 11:02 Theseus‘Ship 阅读(149) 评论(0) 推荐(0) 编辑
摘要: #C语言-C语言程序设计-Function-strcpy 书上关于strcpy介绍了数组、指针、指针简化的例子,对于代码简化是个可见的例子,记录下来。 #include <stdio.h> #include <stdlib.h> int main() { //initial value char c 阅读全文
posted @ 2020-11-14 10:56 Theseus‘Ship 阅读(106) 评论(0) 推荐(0) 编辑
摘要: #C语言-C语言程序设计-Function-fopen 直接抄的书上的,编译没过,应该和系统有关,用的windows系统去编译unix上的函数。 就功能理解上还是可以的,所以没有在去linux上重新编译。 #include <stdio.h> #include <stdlib.h> #include 阅读全文
posted @ 2020-11-14 10:48 Theseus‘Ship 阅读(113) 评论(0) 推荐(0) 编辑
摘要: #C语言-C语言程序设计-Application-逆波兰计算器 最近软考的时候才知道的逆波兰表达式,这个竟然是C的内容之一,把书上的抄下来了。 主要就是对操作数的入栈出栈,以及与操作符匹配的一种应用方式。 #include <stdio.h> #include <stdlib.h> /* 为了使用a 阅读全文
posted @ 2020-11-14 10:45 Theseus‘Ship 阅读(237) 评论(0) 推荐(0) 编辑
摘要: #C语言-C语言程序设计-Function-Find 照着书敲了一遍然后又重新读了一次才发现程序通过while循环识别的 -xn这种输入。 #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAXLINE 1000 阅读全文
posted @ 2020-11-14 10:41 Theseus‘Ship 阅读(212) 评论(0) 推荐(0) 编辑
摘要: #希尔排序-C语言 2020.11月软考时考了希尔排序,但是目前我还是没想明白他的那个if要填什么。。。。。 下面是今天重新看的 《C程序设计语言》书上的例子,这个和之前理解的希尔就没有什么出入了。 void shellSort(int v[], int n){ int gap, i, j, tem 阅读全文
posted @ 2020-11-11 20:17 Theseus‘Ship 阅读(178) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页
Live2D