
C语言
文章平均质量分 59
mxlapple
一个想入嵌入式的小伙伴
展开
-
C语言一定是从main函数开始执行的吗?
C语言一定是从mian函数开始执行的吗?原创 2021-04-28 17:24:18 · 4231 阅读 · 0 评论 -
密码匹配代码
#include <stdio.h>#include <string.h>#include <stdlib.h>#include <math.h>void cal_next(const char *str, int *next, int len){ next[0] = -1;//next int k = -1; int q; for (q = 1; q <= len-1; q++) { ..原创 2020-12-24 14:46:03 · 374 阅读 · 0 评论 -
2020-12-21
两台电脑如何通过USB传输数据?两台电脑各插一个USB转TTL,中间用杜邦线连接原创 2020-12-21 12:55:26 · 129 阅读 · 0 评论 -
提取字符串中的十六进制,字符串转16进制
提取字符串中的十六进制,字符串转16进制// C#include<stdio.h>char str[]=“da81”;unsigned int String2hex(char* str,int length){int i;int result=0;int temp;for(i=0;i<length;i++){if(str[i]>=‘a’&&str[i]<=‘f’)result=result16+str[i]-‘a’+10;if(st原创 2020-09-18 14:23:44 · 1807 阅读 · 0 评论