2023年11月29日

[good]c语言函数指针的运用

摘要: #include <stdio.h> #define MAX 10 void swap(int *x, int *y) { int temp; temp = *x; *x = *y; *y = temp; } void fun(int *height, int *age) { int n = 10; 阅读全文

posted @ 2023-11-29 09:55 风中狂笑 阅读(17) 评论(0) 推荐(0) 编辑

[good]c语言数组的运算

摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #define MAX 10 int **createRandom2DArray(int rows, int cols) { srand(time(NULL)); // 初始化随机数生成 阅读全文

posted @ 2023-11-29 09:53 风中狂笑 阅读(17) 评论(0) 推荐(0) 编辑

2023年11月28日

c语言中函数指针用法

摘要: #include <stdio.h> #define MAX 10 void swap(int *x, int *y) { int temp; temp = *x; *x = *y; *y = temp; } void fun(int *height, int *age) { int n = 10; 阅读全文

posted @ 2023-11-28 09:36 风中狂笑 阅读(6) 评论(0) 推荐(0) 编辑

使用动态方式创建1D和2D矩阵

摘要: int *create1DArray(int size) { int i; int *arr = (int *)(malloc(sizeof(int) * size)); for (i = 0; i < size; i++) { arr[i] = i * i; } return arr; } int 阅读全文

posted @ 2023-11-28 09:33 风中狂笑 阅读(26) 评论(0) 推荐(0) 编辑

2023年11月27日

c语言中向函数传递二维矩阵的方法

摘要: 在C语言中,向函数传递二维数组有几种方式,这主要取决于二维数组的大小是否已知。下面是几种常见的方式: 1)如果二维数组的大小已知,那么你可以在函数参数中直接指定数组的大小。例如: void func(int arr[10][10]) { ... } 在这个例子中,func函数接受一个10x10的二维 阅读全文

posted @ 2023-11-27 14:05 风中狂笑 阅读(1326) 评论(0) 推荐(0) 编辑

c语言

摘要: /* * @Author: huanjiang-lab vibration@zju.edu.cn * @Date: 2023-11-10 13:51:34 * @LastEditors: huanjiang-lab vibration@zju.edu.cn * @LastEditTime: 2023 阅读全文

posted @ 2023-11-27 09:56 风中狂笑 阅读(3) 评论(0) 推荐(0) 编辑

2023年11月24日

c语言中的指针用法

摘要: 1、指向函数的指针 在C语言中,函数名实际上是一个指向函数的指针,所以你可以直接使用函数名add来初始化函数指针,而不需要使用&add。在这种情况下,add和&add是等价的。 这是因为在C语言中,函数名是函数的入口地址的别名。当你使用函数名时,你实际上获取的是函数的入口地址。这就是为什么你可以直接 阅读全文

posted @ 2023-11-24 16:43 风中狂笑 阅读(165) 评论(0) 推荐(0) 编辑

2023年11月22日

[good]c语言读取文件中的数据到结构体和数组

摘要: #include <stdio.h> #include <string.h> #include <stdlib.h> #define BUF_SIZE 100 #define MAX_SIZE 100 // #define ROWS(arr) (sizeof(arr) / sizeof((arr)[ 阅读全文

posted @ 2023-11-22 16:36 风中狂笑 阅读(276) 评论(0) 推荐(0) 编辑

2023年10月28日

PROTEUS7.8INSTALL

摘要: 阅读全文

posted @ 2023-10-28 20:42 风中狂笑 阅读(13) 评论(0) 推荐(0) 编辑

2023年10月27日

51单片机-定时器-proteus仿真

摘要: 这是代码 #include "reg51.h" #define u16 unsigned int #define u8 unsigned char #define FOSC 11059200L #define BAUD 9600 #define T0MS (65536 - 1 * FOSC / 12 阅读全文

posted @ 2023-10-27 10:23 风中狂笑 阅读(199) 评论(0) 推荐(0) 编辑

2023年10月19日

kei5安装

摘要: 安装视频【避坑】Keil 5下载安装激活到2032年(含MDK、C51、STM32单片机)_哔哩哔哩_bilibili 1、mdk514安装 2、pack安装 3、然后重新打开keil5,用c51激活 阅读全文

posted @ 2023-10-19 16:21 风中狂笑 阅读(39) 评论(0) 推荐(0) 编辑

kei4安装

摘要: 安装比较简单,安装完成之后,打开软件 复制这个 激活成功,有效期到2032年 阅读全文

posted @ 2023-10-19 10:33 风中狂笑 阅读(12) 评论(0) 推荐(0) 编辑

2023年10月18日

虚拟串口VSPD

摘要: 虚拟串口软件VSPD下载安装及使用 包含XCOM串口调试软件_vspd.exe-CSDN博客 下载地址阿里云盘分享 (aliyundrive.com) 阅读全文

posted @ 2023-10-18 10:40 风中狂笑 阅读(28) 评论(0) 推荐(0) 编辑

2023年10月10日

k51-使用下载程序

摘要: 阅读全文

posted @ 2023-10-10 15:53 风中狂笑 阅读(17) 评论(0) 推荐(0) 编辑

k51安装与使用

摘要: 阅读全文

posted @ 2023-10-10 15:36 风中狂笑 阅读(55) 评论(0) 推荐(0) 编辑

51单片机-发送16进制数给LCD1602和串口

摘要: #include "reg52.h" #include "string.h" #include "LCD1602.h" #define uchar unsigned char #define uint unsigned int typedef unsigned char u8; typedef un 阅读全文

posted @ 2023-10-10 09:50 风中狂笑 阅读(378) 评论(0) 推荐(0) 编辑

2023年10月9日

51单片机-A2板接收单片机485数据

摘要: #include "reg52.h" #define uchar unsigned char #define uint unsigned int typedef unsigned char u8; typedef unsigned int u16; void delay(u16 ms) { u16 阅读全文

posted @ 2023-10-09 16:30 风中狂笑 阅读(40) 评论(0) 推荐(0) 编辑

2023年10月8日

开源软件-

摘要: Starship Configuration | Starship 阅读全文

posted @ 2023-10-08 19:42 风中狂笑 阅读(6) 评论(0) 推荐(0) 编辑

2023年9月29日

51单片机-时钟

摘要: #include "reg52.h" #include <intrins.h> typedef unsigned char uchar; typedef unsigned int uint; typedef unsigned char u8; typedef unsigned int u16; ty 阅读全文

posted @ 2023-09-29 19:24 风中狂笑 阅读(36) 评论(0) 推荐(0) 编辑

51单片机-独立按键控制电机

摘要: #include "reg52.h" typedef unsigned int u16; typedef unsigned char u8; sbit k1 = P3 ^ 1; sbit k2 = P3 ^ 0; sbit k3 = P3 ^ 2; sbit k4 = P3 ^ 3; sbit mo 阅读全文

posted @ 2023-09-29 19:21 风中狂笑 阅读(107) 评论(0) 推荐(0) 编辑

2023年9月28日

ERROR: cannot verify github.com's certificate

摘要: wget获取https资源 - simplelovecs - 博客园 (cnblogs.com) 加参数 >wget --no-check-certificate your-download-url 阅读全文

posted @ 2023-09-28 08:51 风中狂笑 阅读(195) 评论(0) 推荐(0) 编辑

2023年9月25日

win11安装StartAllBack无法正常启动导致无限闪屏的解决方法

摘要: 需要安装最新版,比如v3.6.3,否则的话是会出现无限闪屏的,之前遇到过,这次又遇到了,按f8也进入不了安全模式,不过下面的方法倒是可以 1)按ctrl+shift+esc,打开任务管理器,找到“windows资源管理器”,右键选择“打开文件所在位置” 2)进入system32目录,找到contro 阅读全文

posted @ 2023-09-25 16:17 风中狂笑 阅读(6701) 评论(0) 推荐(0) 编辑

2023年9月7日

idm破解

摘要: 打开powershell,然后输入以下脚本 iwr -useb https://raw.githubusercontent.com/lstprjct/IDM-Activation-Script/main/IAS.ps1 | iex 2023最新教程IDM官方最新版版本一键激活免费使用 - 知乎 (z 阅读全文

posted @ 2023-09-07 12:30 风中狂笑 阅读(1566) 评论(0) 推荐(0) 编辑

2023年7月26日

vscode下载慢的解决办法

摘要: 国内下载vscode速度慢问题解决 - 知乎 (zhihu.com) Visual Studio Code - Code Editing. Redefined 阅读全文

posted @ 2023-07-26 11:06 风中狂笑 阅读(23) 评论(0) 推荐(0) 编辑

2023年7月20日

51单片机-利用定时器控制LED灯轮闪

摘要: #include "reg52.h" // #include "delay.h" #include "intrins.h" #include <stdio.h> typedef unsigned int u16; typedef unsigned char u8; typedef unsigned 阅读全文

posted @ 2023-07-20 10:07 风中狂笑 阅读(200) 评论(0) 推荐(0) 编辑

2023年7月19日

51单片机-定制器控制LED灯

摘要: #include "reg52.h" #include "delay.h" #include "intrins.h" #include <stdio.h> typedef unsigned int u16; typedef unsigned char u8; typedef unsigned int 阅读全文

posted @ 2023-07-19 15:14 风中狂笑 阅读(28) 评论(0) 推荐(0) 编辑

2023年7月12日

51单片机数码管

摘要: 3分钟带你彻底弄懂数码管的段选与位选_数码管位选和段选的含义是_嵌入式purple的博客-CSDN博客 嵌入式硬件入门——74HC138译码器(三个IO实现8选1)_小辉_Super的博客-CSDN博客 上表中,使能状态的有8种情况,比如第四行LLH,对应的是LLL,也就是代码中0位段情况,即111 阅读全文

posted @ 2023-07-12 20:05 风中狂笑 阅读(124) 评论(0) 推荐(0) 编辑

51单片机-跑马灯例子

摘要: #include "reg52.h" #include "intrins.h" #include <stdio.h> typedef unsigned int u16; typedef unsigned char u8; typedef unsigned int uint; typedef unsi 阅读全文

posted @ 2023-07-12 10:26 风中狂笑 阅读(133) 评论(0) 推荐(0) 编辑

2023年7月3日

如何彻底卸载360

摘要: 阅读全文

posted @ 2023-07-03 21:01 风中狂笑 阅读(28) 评论(0) 推荐(0) 编辑

2023年7月2日

vscode+markdown

摘要: 阅读全文

posted @ 2023-07-02 19:28 风中狂笑 阅读(7) 评论(0) 推荐(0) 编辑

vscode cpp 配置及遇到的问题-good

摘要: 已解决:could not find the task ‘g++ build active file,leetcode算法ACM编译调试_dlage的博客-CSDN博客 (32条消息) vscode下编译告警“undefined reference”?三步教你如何解决_vscode undefine 阅读全文

posted @ 2023-07-02 11:56 风中狂笑 阅读(125) 评论(0) 推荐(0) 编辑

2023年6月29日

.bashrc alias

摘要: 找到这个$HOME/.bashrc$HOME的意思是你的home目录,一般是/home/xxx/,xxx是你的登陆用户名.bashrc 是个隐藏文件,可以在家目录下面用ls -a看到~/.bash_profile 是交互式、login 方式进入 bash 运行的~/.bashrc 是交互式 non- 阅读全文

posted @ 2023-06-29 16:53 风中狂笑 阅读(174) 评论(0) 推荐(0) 编辑

2023年6月28日

vscode+vim configuration -good

摘要: vscode + vim 全键盘操作高效搭配方案 - 云崖君 - 博客园 (cnblogs.com) Boost Your Coding Fu With Visual Studio Code and Vim | Barbarian Meets Coding 阅读全文

posted @ 2023-06-28 02:03 风中狂笑 阅读(29) 评论(0) 推荐(0) 编辑

2023年6月27日

windows11+gcc安装-good

摘要: MSYS2 MSYS2 然后看这个贴Get Started with C++ and MinGW-w64 in Visual Studio Code 上面的pacman命令其实可以用下面的来代替,因为里面包含了gcc >pacman -S mingw-w64-ucrt-x86_64-gcc >pac 阅读全文

posted @ 2023-06-27 16:58 风中狂笑 阅读(825) 评论(0) 推荐(0) 编辑

vscode+cpp配置

摘要: VSCode配置C++环境【报错interpreter=mi】_--interpreter=mi_圈圈`的博客-CSDN博客 2022 年 vim 的 C/C++ 配置 | 工欲善其事,必先利其器 (martins3.github.io) c_cpp_properties.json { "confi 阅读全文

posted @ 2023-06-27 15:40 风中狂笑 阅读(36) 评论(0) 推荐(0) 编辑

2023年6月25日

wsl+ubuntu+nvim

摘要: #1安装依赖 点击查看代码 ``` sudo apt update sudo apt install build-essential sudo apt-get install manpages-dev ``` #2安装nvim #3安装nodejs #4安装NerdFont字体 点击查看代码 ``` 阅读全文

posted @ 2023-06-25 18:34 风中狂笑 阅读(50) 评论(0) 推荐(0) 编辑

ubuntu中install cmake及各种依赖

摘要: sudo apt-get install clangd ubuntu 20.04安装(升级)cmake - 知乎 (zhihu.com) 1、 sudo apt update 安装各种依赖包2、 sudo apt install build-essential sudo apt install -y 阅读全文

posted @ 2023-06-25 16:03 风中狂笑 阅读(216) 评论(0) 推荐(0) 编辑

2023年6月19日

nvin configuration -good-to be deleted

摘要: 1111111111111111111111111 阅读全文

posted @ 2023-06-19 09:39 风中狂笑 阅读(47) 评论(0) 推荐(0) 编辑

2023年6月18日

How to Install Nerd Fonts on Linux-good

摘要: Installing Nerd Fonts - Documentation (rockylinux.org) How to Install Nerd Fonts on Linux (geekbits.io) 没什么鸟用,我估计是因为我是wsl的关系,windows是不是要装这上面 windows中安 阅读全文

posted @ 2023-06-18 22:16 风中狂笑 阅读(595) 评论(0) 推荐(0) 编辑

2023年6月15日

2022 年 vim 的 C/C++ 配置

摘要: 2022 年 vim 的 C/C++ 配置 | 工欲善其事,必先利其器 (martins3.github.io) 阅读全文

posted @ 2023-06-15 21:41 风中狂笑 阅读(51) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示