最新动态

今日:0  |  文章:1152
汇集全站版块最新文章
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++语言开发   2127   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   2253   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++语言开发   1843   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   2129   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++语言开发   2247   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 编程   1699   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   1991   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++语言开发   2088   10  2022-12-15
admin
小绿叶技术博客 Lv2 超级管理员

ubuntu22.04腾讯会议不兼容wayland协议问题

sudo dpkg -i 腾讯会议.deb 2.解决腾讯会议不兼容wayland协议问题: sudo nano /etc/gdm3/custom.conf 将#WaylandEnable=false 前面的注释#号去掉后,保存退出 NR=`cat -n /etc/gdm3/custom.conf | grep WaylandEnable | awk -F" " '{print $1}'` ; echo $NR ; sudo sed -i "$NR s/#//g" /etc/gdm3/custom.
 
linux   4606   2022-12-14
admin
小绿叶技术博客 Lv2 超级管理员

openwrt linux 嵌入式系统

   https://openwrt.org/zh/start
/置顶
linux   1717   2022-12-13
头像

用户名:

粉丝数:

签名:

资料 关注 好友 消息