最新动态

今日:0  |  文章:1154
汇集全站版块最新文章
admin
小绿叶技术博客 Lv2 超级管理员

ubuntu 开启远程桌面, 桌面合盖不休眠

#--- 开启远程桌面 ---#sudo apt install -y xrdp# 方法一安装 xrdp 远程工具,缺点: 图像延迟#方法二: 缺点:锁屏下无法登陆设置 > 共享 > 远程桌面 > 开启远程桌面 和 远程控制, 认证 设置密码设置 > 共享 > 远程登陆 > 开启#--- 合盖不休眠 ---# NR=`cat -n /etc/systemd/logind.conf | grep -w HandleLidSwitch | awk -F" " '{
 
ubuntu   2874   2023-01-26
admin
小绿叶技术博客 Lv2 超级管理员

c 结构体 指针

#include <stdio.h> struct namebiao{ char *name; //姓名 int num; //学号 int age; //年龄 char group; //所在小组 float score; //成绩 }; // 定义一个结构体 自定义名字 namebiao struct namebiao shuzu[]= { {"Li ping", 5, 18, 'C', 145.0}, {"Zhang
 
C/C++语言开发   1202   2023-01-17
admin
小绿叶技术博客 Lv2 超级管理员

c 控制led 灯逻辑代码

#include <stdio.h> #include <unistd.h> // sleep 函数包索引 int flag = 0; int flag1 =0; int cishu = 0; int jhcs = 3; // bool 是二进制类型; void test(int bit, int val) { // 由于 main 函数,我得到 数值: 1 1 printf("我是控制灯函数..."); // int const Mask = Bits
/置顶
C/C++语言开发   2236   2023-01-13
admin
小绿叶技术博客 Lv2 超级管理员

windows 扩容磁盘

 cmd # 进入cmd 命令界面diskpart # 进入磁盘分区工具list volume# 列出磁盘select volume c# 选择 c 盘extend # 扩容 选择的磁盘如果还是不行:1. 安装 winpe :   http://work.eisc.cn/ruanjian/windows/%E5%BF%85%E5%A4%87%E8%BD%AF%E4%BB%B6/WePE64_V2.2.exe下载后安装进系统,也可以安装到 u盘2.
/置顶
windows   2361   2023-01-07
admin
小绿叶技术博客 Lv2 超级管理员

c++ 文件写入

#include <fstream> #include <iostream> using namespace std; //--- 文件和流 --- // ofstream 输出文件流,用于创建并写入文件; ifstream 输入文件流,用于读取文件; fstream 文件流,同时有前面两种功能 int main () { char data[100]; // 以写模式打开文件, 定义一个文件打开函数 SetFile ofstream SetF
 
C/C++语言开发   1930   2022-12-29
admin
小绿叶技术博客 Lv2 超级管理员

gitea gitlab git 安装

wget -O gitea https://dl.gitea.io/gitea/1.17.4/gitea-1.17.4-linux-amd64chmod +x gitea ; ./gitea web参考连接:https://docs.gitea.io/zh-cn/install-from-binary/  Jenkins:   https://www.jenkins.io/zh/doc/book/installing/物联网网关平台:http://www.ithingsboa
 
自动化运维linux   2208   2022-12-29
admin
小绿叶技术博客 Lv2 超级管理员

c++ 类

#include <iostream> #include <assert.h> using namespace std; // c++ 类 访问控制和继承,能访问的类型: // 同一个类: public protected [prəˈtektɪd] 受保护 private [ˈpraɪvət] 私有 // 派生类:public protected // 外部类:public class A{ public: // 定义类 A 的公共函数 A 和 fun int a
/置顶
C/C++语言开发   2354   2022-12-28
admin
小绿叶技术博客 Lv2 超级管理员

打印三角形 C++ web编程

#include <iostream> #include <vector> #include <string> #include <stdio.h> #include <stdlib.h> #include <cgicc/CgiDefs.h> #include <cgicc/Cgicc.h> #include <cgicc/HTTPHTMLHeader.h> #include <c
 
c++ web 编程   1768   2022-12-21
admin
小绿叶技术博客 Lv2 超级管理员

筛选日志 分析正确率

#!/bin/bash cishu=30 lable=3 set_config_log(){ jieguofile=tongji-$i tongjifile="tongji.txt" charulog=("`n="0x1" ; cat $i | grep "nEventType" |grep -v JT | awk -v awknr="$n" '$NF==awknr' | awk -F"," '{print $4 "," $5}' |uniq -c | sort -n`")
 
自动化运维linux   2059   2022-12-19
admin
小绿叶技术博客 Lv2 超级管理员

c 语言字符串操作函数

#include <stdio.h> #include <string.h> // 字符串操作函数 :1 strcpy 2 memcpy 3 strncpy 4 memset 5 strcat 6 strlen 7 strcmp // 1 和 2 复制并且替换原变量,1 仅支持字符串; 3 替换字符串开头多少位; 4 将变量二的多少位添加到 变量一的尾部 // 5 字符串末尾追加; 6 计算字符串长度; 7 比较两个字符串,= > < 返回 0 1 -
 
C/C++语言开发   2173   10  2022-12-15
头像

用户名:

粉丝数:

签名:

资料 关注 好友 消息