搜索资源列表
libbase58-master
- Initialisation -------------- Before you can use libbase58 for base58check, you must provide a SHA256 function. The required function signature is: bool my_sha256(void *digest, const void *data, size_t datasz) Simply assign your function to b
编辑距离
- 程序提示用户输入一行字符串(字符个数不超过80个,该字符串用回车符结束)。并按字母,数字及其他字符分类计数,然后将结果存入以char、digit和other为名的存储单元 字符串转换所需最短的编辑距离(The program prompts the user to enter a string of characters (no more than 80 characters, and the string ends with carriage returns). It is classifi
cjson
- C下json结构体的接口函数,封装结构到解析结构一步到位。(/* The cJSON structure: */ typedef struct cJSON { struct cJSON *next,*prev; /* next/prev allow you to walk array/object chains. Alternatively, use GetArraySize/GetArrayItem/GetObjectItem */ struct cJSON *child; /*
C语言中scanf的使用
- 首先需要#include <stdio.h>int scanf( const char *format, ... );scanf()函数是格式化输入函数,它从标准输入设备(键盘) 读取输入的信息。第一个参数format为一个常量字符串,这个字符串中如果包含‘%’符号则使用后续参数进行匹配如:scanf("%d%d", &a, &b);(First, we need #include <stdio.h>int scanf (const c
设计strstr函数
- 描述 C语言中有一个函数strstr。我们编写一个类似功能的函数,mystrstr int mystrstr(char a[], char b[]); 作用是查找字符串a中出现的第一个b串的下标,如果没有找到,返回-1。 输入 分别输入两个字符串a,b,分别占一行。字符串长度不超过500个字符。 输出 字符串a中出现的第一个b串的下标。 样例 输入 abca a 输出 0(describe There is a function strstr in C language. W