今天写代码,遇到一个const char *返回值的问题,记录一下 问题场景:我写了一个动态库,有个函数声明如下: virtual const char * RGetAppToken(char *appToken, const char *userAccount, const char *userI ...
分类:
编程语言 时间:
2020-02-08 12:03:45
阅读次数:
318
插值查找算法类似于二分查找,不同的是插值查找的每次从自适应mid出开始,这和二分查找升级版用到的是一个方法 int mid = left + (right - left) * (findVal - arr[left]) / (arr[right] - arr[left]); 含义:预测数字出现的位置 ...
分类:
其他好文 时间:
2020-02-08 11:55:53
阅读次数:
75
蟠桃记 题目分析: 很普通的一道函数题,利用所给的条件,进行过程的模拟,构造出一个函数 代码: #include<iostream> using namespace std; int fun(int m) { int sum = 0; if (m == 1) { return 1; } else{ ...
分类:
其他好文 时间:
2020-02-08 09:37:27
阅读次数:
48
package com.itheima.cglib;import com.itheima.proxy.IProducer;import com.itheima.proxy.Producer;import com.sun.webkit.dom.ProcessingInstructionImpl;imp ...
分类:
其他好文 时间:
2020-02-08 00:44:32
阅读次数:
65
1.归 ListNode* sortList(ListNode* head) { if (head == nullptr || head->next == nullptr) return head; // 1.将待排序序列分为两部分 ListNode* pre = nullptr, *slow = ...
分类:
编程语言 时间:
2020-02-08 00:36:48
阅读次数:
80
server.c // // Created by gxf on 2020/2/7. // #include <stdio.h> #include <sys/socket.h> #include <arpa/inet.h> #include <stdlib.h> #define BUFFSIZE 1 ...
分类:
其他好文 时间:
2020-02-08 00:27:36
阅读次数:
59
package rjcs; import org.openqa.selenium.firefox.FirefoxDriver; import org.testng.Assert; public class xinkaishi { public static void main(String[] ar ...
分类:
编程语言 时间:
2020-02-08 00:13:18
阅读次数:
414
深度优先遍历(Depth First Search): 自顶点起, 往下一个邻近点走,一直走,走不动了,退回一部。这样反复; /*深度优先遍历三种方式*/ let deepTraversal1 = (node, nodeList = []) => { if (node !== null) { nod ...
分类:
其他好文 时间:
2020-02-07 22:23:41
阅读次数:
68
一、配置环境 django 3.0.3 qiniu 7.2.6 全部可以使用pip安装 二、在app的目录下创建qiniu_config.py文件,用于存放七牛云的相关配置信息 qiniu_config = { 'access_key': '', 'secret_key': '', 'bucket_ ...
分类:
其他好文 时间:
2020-02-07 21:00:00
阅读次数:
109
1 """ 2 Given a linked list, remove the n-th node from the end of list and return its head. 3 Example: 4 Given linked list: 1->2->3->4->5, and n = 2. ...
分类:
其他好文 时间:
2020-02-07 20:26:51
阅读次数:
78