最新动态

今日:0  |  文章:1149
汇集全站版块最新文章
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++语言开发   2137   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 编程   1612   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   1920   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++语言开发   2003   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   4428   2022-12-14
admin
小绿叶技术博客 Lv2 超级管理员

openwrt linux 嵌入式系统

   https://openwrt.org/zh/start
/置顶
linux   1620   2022-12-13
admin
小绿叶技术博客 Lv2 超级管理员

shell 截取字符串

url="c.biancheng.net"# 定义一个变量echo ${url: 2: 9}# 截取变量第3个字符后面的 9个字符
 
自动化运维linux   1411   2022-12-13
admin
小绿叶技术博客 Lv2 超级管理员

c语言-kvm虚拟机管理案例

#include <stdio.h> #include <string.h> // 1.输入和输出如打印字符, 2.各种字符和数组操作 #define Lengtha 30 #define Lengthb 30 // 容器要大于 存放量,否则溢出 struct myIN { char name[Lengtha]; char suzhi[Lengthb]; }; // 定义结构体 名字: myIN 成员: name 和 suzhi ,它们为数组 特征是 中括号,长度
 
C/C++语言开发   1946   2022-12-12
admin
小绿叶技术博客 Lv2 超级管理员

c 语言基础-函数-指针

#include <stdio.h> #include <string.h> #include <time.h> #include <stdlib.h> // popen 函数使用 // 引用函数库,相当于 linux shell 中 apt install xxx 安装包,安装后才能使用这个包中的命令 char shuzu () { char str[99]; // 定义数组元素个数99 没有赋值 strcpy(str,"This
 
C/C++语言开发   2168   2022-12-12
admin
小绿叶技术博客 Lv2 超级管理员

c 语言指针

#----------------- 指针 -----------------# int p # 整型变量 int *p # 指针 int p[3] # 数组,长度为 3 int *p[3] # [] 优先级比 * 高 ,先数组,然后是指针 int (*p)[3] # 改变优先级,先为指针。后为数组 int **p
 
C/C++语言开发   1331   2022-12-10
头像

用户名:

粉丝数:

签名:

资料 关注 好友 消息