摘要: 指针练习 #include <stdio.h> #include <stdlib.h> #include <string.h> int Sum(int* fp){ int total=0; // int i=0; // while(1){ // if(fp[i]==0){ // break; // 阅读全文
posted @ 2026-12-05 10:44 还在printf 阅读(3) 评论(0) 推荐(0)
摘要: package main import ( "fmt" ) func max_num(a, b int)int{ if a>b{ return a }else if b > a{ return b }else{ return 0 } } func min_num(a, b int)int{ if a 阅读全文
posted @ 2026-12-04 18:06 还在printf 阅读(4) 评论(0) 推荐(0)
摘要: #include <algorithm> #include <iostream> #include <string> using namespace std; string addBigInt(string a, string b) { int len = max(a.size(), b.size( 阅读全文
posted @ 2026-12-04 18:00 还在printf 阅读(4) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> void pad_equal(char **a, char **b) { /* 函数功能,把a和b变成一样长 短的哪一方,前面补0 */ int len_a = strlen(*a) 阅读全文
posted @ 2026-12-04 17:59 还在printf 阅读(3) 评论(0) 推荐(0)
摘要: Linux 常用命令行总结 linux命令行的基础格式: command [-options] [parameter] 1. 基础导航 命令 作用 示例 pwd 显示当前所在目录(print working directory) pwd cd 切换目录(change directory) cd /h 阅读全文
posted @ 2026-11-23 01:46 还在printf 阅读(14) 评论(0) 推荐(0)
摘要: 编译命令gcc -o xxx.exe xxx.c&&xxx.c #include<stdio.h> #include<locale.h> int main(){ #ifdef _WIN32 setlocale(LC_ALL, ".UTF8"); // win下强制UTF8 #else setloca 阅读全文
posted @ 2026-11-22 09:16 还在printf 阅读(15) 评论(0) 推荐(0)
摘要: 飞牛 fnOS · SFTP 下载速查笔记 场景:Win10 终端 / PowerShell 用 sftp 登录自己的飞牛 NAS,把外置 SATA 硬盘上的文件夹拉到电脑上。 起因:Chrome 网页端下文件夹失败(无痕也失败 → 不是浏览器问题),改走 SFTP。 0. 一句话记忆 lcd 本地 阅读全文
posted @ 2026-11-21 05:11 还在printf 阅读(22) 评论(0) 推荐(0)
摘要: 远程ssh链接 在win10上用ssh链接飞牛 ssh user@ip 输入密码 ssh user@ip 输入密码 临时链接 StrictHostKeyChecking=no # 不问yes/no 主机指纹仍进黑洞,不写到~/.ssh/known_hosts里 UserKnownHostsFile= 阅读全文
posted @ 2026-11-16 07:31 还在printf 阅读(13) 评论(0) 推荐(0)
摘要: 跨平台获取桌面路径 from pathlib import Path import os import json def get_desktop_path(): # Windows/Macos if os.name == "nt": return Path.home() / "Desktop" # 阅读全文
posted @ 2026-11-16 02:20 还在printf 阅读(9) 评论(0) 推荐(0)
摘要: C语言实现洗牌算法->shuffle.c #include <stdio.h> #include <stdlib.h> #include <time.h> // Fisher-Yates 洗牌算法实现 void shuffle(int arr[], int n) { // 从最后一个开始向前遍历 f 阅读全文
posted @ 2026-11-16 02:17 还在printf 阅读(14) 评论(0) 推荐(0)