上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 主要配置如下 syntax on "打开语法高亮功能 setlocal noswapfile " 不要生成swap文件 set bufhidden=hide " 当buffer被丢弃的时候隐藏它 set number " 显示行号 "set cursorline " 突出显示当前行 set rule 阅读全文
posted @ 2023-11-19 19:30 Guanjie255 阅读(14) 评论(0) 推荐(0)
摘要: 问题描述:将一个Linux下某个文件夹下所有文件传输到Windows上 方法一:使用Putty在cmd.exe或PowerShell中完成 使用Putty提供的PSFTP客户端连接远程SFTP服务器 使用cd命令切换到目标文件夹Dest 使用!mkdir文件夹在本地新建一个空文件夹Source 使用 阅读全文
posted @ 2023-11-16 00:34 Guanjie255 阅读(1162) 评论(0) 推荐(0)
摘要: Windows自带的OpenSSH Putty(自由and开源and免费,首选) XShell(功能强大) FileZilla(GUI界面,专用于FTP/SFTP) 注:SSH和STFP的默认端口都是22 一、一般Windows自带OpenSSH,提供了SSH,SFTP等客户端 1.在cmd.exe 阅读全文
posted @ 2023-11-15 23:56 Guanjie255 阅读(7125) 评论(0) 推荐(0)
摘要: 顺序栈的基本模型 完整的C代码 点击查看代码 #include <stdio.h> #include <stdlib.h> #include <stdbool.h> typedef struct StackNode { /*metadata node of stack*/ int* data; // 阅读全文
posted @ 2023-11-13 21:34 Guanjie255 阅读(10) 评论(0) 推荐(0)
摘要: 顺序栈的基本模型 完整代码 点击查看代码 #! /usr/bin/env python3 class Stack: # stack: initiate, is_empty, is_full, push and pop def __init__(self, maxsize): self.data = 阅读全文
posted @ 2023-11-13 20:27 Guanjie255 阅读(30) 评论(0) 推荐(0)
摘要: 循环队列的基本模型 完整Python代码 点击查看代码 #! /usr/bin/env python3 class Queue: # Implement Circualr Queue def __init__(self, maxsize): self.data = [0 for i in range 阅读全文
posted @ 2023-11-13 18:50 Guanjie255 阅读(63) 评论(0) 推荐(0)
摘要: 1.循环队列的基本模型 1.1 此模型采用的队列判空条件是rear == front为真 1.2 此模型采用的队列已满条件是(rear+1)%maxsize == front为真,因此有一个数组单元(也就是front指向的数组单元)不可使用 1.3 可以在队列结点加一个成员表示最近一次对队列的操作为 阅读全文
posted @ 2023-11-13 17:35 Guanjie255 阅读(193) 评论(0) 推荐(0)
摘要: 1.想在互联网冲浪,公网IP是必不可少的(一般是路由器的公网IP) $ curl ifconfig.me 2.PC的IP一般由路由器分配,是私有IP,与局域网内的计算机通信,然后利用路由器的公网IP与互联网上的计算机通信 # 注意是ifconfig,而不是windows中的dos命令ipconfig 阅读全文
posted @ 2023-11-09 21:10 Guanjie255 阅读(551) 评论(0) 推荐(0)
摘要: 防止手生,就算一天只写一行代码也是有意义的 1.C代码 #include <stdio.h> void printTable(); int main(int argc, char* argv[]) { printTable(); return 0; } void printTable() { /*p 阅读全文
posted @ 2023-10-07 16:53 Guanjie255 阅读(15) 评论(0) 推荐(0)
摘要: 优先级很低,往往需要加一个括号 在求二叉树的高度遇到的问题,属于对C不熟悉导致的bug // ret的值为20,ret1的值是22 int a = 10, b = 20; int ret = 2 + a>b?a:b; // 先计算2+a, 2+a>b为假,因此ret的值是20 int ret1 = 阅读全文
posted @ 2023-09-29 17:44 Guanjie255 阅读(40) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 9 下一页