- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 串口环形队列的应用
串口环形队列的应用 --Written by SimonLien 2020.05.25(转载请注明出处) 在项目的开发过程中,由于有些串口不具备FIFO或者FIFO的buffer很小,我们经常会自己设计一个队列(Queue)来避免串口...
2020-05-25 14:00:26
3192
原创 Finate State Machine有限状态机的c语言实现
/*@Author :Simon Lien@Date:2020.04.25@File: FinateStateMachine.c@GitHub Address:https://github.com/SimonLien/CodeStudyForDataStructure*/#include "stdio.h"#include "windows.h"typedef unsigned...
2020-04-25 11:12:32
496
原创 linux常用命令
获取user gid/uid:cat /etc/passwd | grep 你的用户名修改只读文件:mount -o remount,rw /挂载:sudo mount -t FighterCNX pcshare自动挂载:FighterCNX pcshare vboxsf rw,gid=500,uid=500,auto 0 0...
2019-12-01 22:47:48
137
原创 关于嵌入式开发中的菜单操作
屏幕显示对于嵌入式系统开发尤其重要,如果屏幕编程没有处理好,则会给自己以及他人造成很大的困扰,程序会变的混乱不堪,特别是对于菜单的操作。 这边我介绍一种利用面向对象封装的思想来设计菜单操作,让程序变得清晰明了,并且具有很强的扩展性。程序如下:#include "stdio.h"#include "stdlib.h"typedef unsigned ...
2019-11-12 21:27:20
1266
1
原创 链表操作--头插法
#include "stdio.h"#include "stdlib.h"typedef struct Node{ int data; struct Node* next;}pNodeType;pNodeType* CreateList(){ pNodeType* headNode=(pNodeType*)malloc(sizeof(pNode...
2019-11-12 20:33:04
228
原创 出现如下错误的解决方式:错误 CS0246: 未能找到类型或命名空间名称“WHC”(是否缺少 using 指令或程序集引用?)
在调用类库时,若出现如下错误:可尝试将目标框架修改成与类库的一样的目标框架:再次,编译就会OK。
2019-07-21 19:40:02
5379
原创 c编写空战游戏
#include "graphics.h"#include "conio.h"#include "stdio.h"#define HEIGHT 20#define WIDTH 36#define EnemyNum 5#define BulletWidth 5int canvas[HEIGHT][WIDTH]={0};int Position_x,Position_y;int...
2019-07-21 12:37:37
1063
原创 C#遍历数组的三种方式
第一种,使用for语句:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace MyConsoleApplication{ class Program { static void Main(string[] args)...
2019-07-21 12:27:58
17410
原创 windows格式化打印信息
#include <Windows.h>#include <tchar.h>#include <stdio.h>int CDECL MessageBoxPrintf(TCHAR *szCaption,TCHAR *szFormat,...){ TCHAR szBuffer[1024]; va_list pArgList; va_s...
2019-07-13 20:46:45
285
原创 C编写获取窗口鼠标点击的坐标
源码如下:#include "graphics.h" //基于easy x库实现获取鼠标坐标#define WindowsWidth 1920 //窗口宽度#define WindowsHight 1080 //窗口高度int main(){ MOUSEMSG m; TCHAR s[10]; in...
2019-06-23 11:16:51
4461
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人