摘要:        
合并两个有序数组--LeetCode:https://leetcode-cn.com/problems/merge-sorted-array 题目虽然归类于简单类型,鉴于题目要求是合并到传入参数nums1,如果不从后向前进行合并的话,则要么浪费空间(一般做法是对num1拷贝一份),要么很复杂! 特此    
阅读全文
 
        
            posted @ 2020-08-14 17:12
一骑红尘妃子笑!
阅读(183)
推荐(0)
        
         
        
        
摘要:        
ArrayList转化为基本类型int数组! import java.util.ArrayList; import java.util.Random; public class Main { public static void main(String[] args) { ArrayList<Int    
阅读全文
 
        
            posted @ 2020-08-14 11:18
一骑红尘妃子笑!
阅读(734)
推荐(0)
        
         
 
	
		
        
        
摘要:        
创建数据库: 简单插入操作: #include <sqlite3.h> #include <string.h> #include <stdio.h> int main(int argc,char *argv[]){ sqlite3 *db = NULL; sqlite3_stmt * stmt; i    
阅读全文
 
        
            posted @ 2020-08-13 20:06
一骑红尘妃子笑!
阅读(1408)
推荐(0)
        
         
 
	
		
        
        
摘要:        
#include <stdio.h> char *fgets(char *s, int size, FILE *stream); 简介: fgets()从流中读取的字符数最多size-1字符,并将其存储到s指向的缓冲区中。 在EOF或换行符之后停止读取。 如果读取到换行符,则将其存储到缓冲区中。 在    
阅读全文
 
        
            posted @ 2020-08-12 22:08
一骑红尘妃子笑!
阅读(237)
推荐(0)
        
         
        
        
摘要:        
#include <string.h> char *strdup(const char *s); description: strdup()函数返回一个指向新字符串的指针,该字符串与s字符串副本。 新字符串的内存是通过malloc获得的,可以通过free释放。 return value: 返回值成功    
阅读全文
 
        
            posted @ 2020-08-12 21:07
一骑红尘妃子笑!
阅读(261)
推荐(0)
        
         
        
        
摘要:        
#include <stdio.h> #include <stdint.h> #include <strings.h> #include <openssl/dh.h> #include <openssl/evp.h> static void hex_print(const char *name, c    
阅读全文
 
        
            posted @ 2020-08-12 11:29
一骑红尘妃子笑!
阅读(929)
推荐(0)
        
         
        
        
摘要:        
[United States]Federal Information Processing Standards(美国联邦信息处理标准)是在美国政府计算机标准化计划下开发的标准,这个计划定义了用于政府机关的自动化数据处理和远程通信标准。    
阅读全文
 
        
            posted @ 2020-08-12 10:50
一骑红尘妃子笑!
阅读(259)
推荐(0)
        
         
 
	
		
        
        
摘要:        
pthread_mutexattr_gettype : get一个mutex属性类型! pthread_mutexattr_settype : set一个mutex属性类型! pthread_mutexattr_destroy :销毁一个 mutex 属性! pthread_mutexattr_in    
阅读全文
 
        
            posted @ 2020-08-11 09:23
一骑红尘妃子笑!
阅读(1309)
推荐(0)
        
         
 
	
		
        
        
摘要:        
#include <strings.h> #include <unistd.h> #include <stdio.h> int main(){ char host__name[32] = {0}; bzero(host__name,32); char domainname[32] = {0}; bz    
阅读全文
 
        
            posted @ 2020-08-10 20:12
一骑红尘妃子笑!
阅读(297)
推荐(0)
        
         
 
	
		
        
        
摘要:        
RFC4013文档定义了准备国际化用户名和密码的规则,为了简化和简化实现,为用户名和密码定义了一个算法。本质上就是按照一个规则对输入字符串进行规范化输出,更多规范化规则可以参考RFC3454:Preparation of Internationalized Strings ("stringprep"    
阅读全文
 
        
            posted @ 2020-08-08 11:00
一骑红尘妃子笑!
阅读(506)
推荐(0)