码迷,mamicode.com
首页 >  
搜索关键字:string 析构 异常    ( 127907个结果
算法学习刷题记录-210717
3768. 字符串删减 - AcWing题库 思路 双指针的练习 C++代码 #include <iostream> #include <cstring> #include <algorithm> using namespace std; int main() { int n; string s; ...
分类:编程语言   时间:2021-07-19 16:34:51    阅读次数:0
选择排序
public static void main(String[] args) { int[] aa = {5, 86, 21, 231, 4, 3, 1, 74}; paixu(aa); printaaaa(aa);}public static void paixu(int[] aa) { for ...
分类:编程语言   时间:2021-07-19 16:29:05    阅读次数:0
C++ 递归遍历文件并计算MD5
递归遍历文件夹,对比文件md5 首先,需要引用 md5 的相关代码,参考这篇文章,防止链接内容被删除,这里再记录一次: md5.h #ifndef MD5_H #define MD5_H #include <string> #include <fstream> /* Type define */ t ...
分类:编程语言   时间:2021-07-16 17:44:14    阅读次数:0
消除 if else 判断
1.if..else public int calculate(int a, int b, String operator) { int result = Integer.MIN_VALUE; if ("add".equals(operator)) { result = a + b; } else ...
分类:其他好文   时间:2021-07-15 18:58:38    阅读次数:0
C语言动态分配内存及回收
用malloc和free;类似与C++的new和delete 代码: #include <iostream> #include <string> using namespace std; int main(int argc, char* argv[]) { void* ptr = (void*)ma ...
分类:编程语言   时间:2021-07-15 18:57:44    阅读次数:0
== 和 equals区别
== equals是两种字符串的方式 区别 == 是比较两个对象的引用地址值 equals是比较两个对象的具体内容 示例 package com.oop.demo06; public class Demo01 { public static void main(String[] args) { St ...
分类:其他好文   时间:2021-07-14 18:50:51    阅读次数:0
DRF之过滤排序分页异常处理
一、过滤 对于列表数据要通过字段来进行过滤,就需要添加 django-filter 模块 使用方法: # 1、注册,在app中注册 settings.py INSTALLED_APPS = [ 'django_filters', ] # 2、settings.py 配置 REST_FRAMEWORK ...
分类:编程语言   时间:2021-07-12 18:15:57    阅读次数:0
C++ JNI jstring to string (utf16 to utf8)
JNI中jstring转码到std::string其实就是utf16转码到你选择的编码的过程,因为我C++程序要用utf8,所以这里我转成utf8 用到的转码库是utfcpp 这个库的使用方法就是下载source文件夹下全部内容,然后#include "utf8.h"在你的项目 代码: std::s ...
分类:编程语言   时间:2021-07-12 18:01:37    阅读次数:0
python通用规范-9
文章目录 9.1 异常行为9.1.1 禁止抑制或者忽略已检查异常9.1.2 禁止在异常中泄露敏感信息9.1.3 方法发生异常时要恢复到之前的对象状态9.2 运行环境9.2.1 生产代码不能包含任何调试入口点9.2.2 使用标准的API替代操作系统的系统命令9.2.3 禁止从第3方源下载并使用软件包9 ...
分类:编程语言   时间:2021-07-12 17:57:29    阅读次数:0
Http Post Json参数及Json接收
private string HttpRequest(Dictionary<string, object> dic, string url) { string json = JSONhelper.ObjToJson(dic); WebRequest request = WebRequest.Crea ...
分类:Web程序   时间:2021-07-07 17:56:22    阅读次数:0
127907条   上一页 1 2 3 4 5 ... 12791 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!