码迷,mamicode.com
首页 >  
搜索关键字:action namespace    ( 58010个结果
PTA basic 1084 外观数列 (20 分) c++语言实现(g++)
外观数列是指具有以下特点的整数序列: d, d1, d111, d113, d11231, d112213111, ... 它从不等于 1 的数字 d 开始,序列的第 n+1 项是对第 n 项的描述。比如第 2 项表示第 1 项有 1 个 d,所以就是 d1;第 2 项是 1 个 d(对应 d1)和 ...
分类:编程语言   时间:2021-05-24 08:25:54    阅读次数:0
Cpp primer plus notes
Cpp primer plus notes ch2. get start #include 预处理器编译指令。 using namespace 编译指令。 void关键字显示说明不接受任何参数。 //myfirst.cpp #include <iostream> int main(void) { u ...
分类:其他好文   时间:2021-05-24 08:11:29    阅读次数:0
双指针
###双指针算法: 核心思想就是缩减时间复杂度 for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { 时间复杂度是O(n * n) } } 双指针模板 for (i = 0; j = 0; j < n; j++) { while (j ...
分类:其他好文   时间:2021-05-24 08:01:14    阅读次数:0
RC-[CF]101028J-X and Beasts
是个背包问题,很彻底的背包,故记录一下 题意:X想升级武器,有n个商店,第i个商店提供能量为ai的能量包,当ai可以被2n整除时,武器可以升n级,且X每次购买的能量包所包含的能量必须严格递增。问武器最多能升多少级 没啥特别的思路,就是彻底背包,直接上(抄的)码 1 #include <bits/st ...
分类:其他好文   时间:2021-05-24 07:37:04    阅读次数:0
16.8.1【set容器的基本概念、构造和赋值】
#include<iostream> #include<cstdlib> using namespace std; #include<set> /* 3.8 set/multiset容器 3.8.1 set基本概念 简介:所有元素都会在插入时自动被排序 本质:set/multiset属于关联式容器, ...
分类:其他好文   时间:2021-05-24 06:37:16    阅读次数:0
16.8.2【set容器的大小和交换、插入和删除、查找和统计】
1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<set> 5 6 7 /* 8 3.8.3 set容器大小和交换 9 10 size(); //返回容器中元素的数目 11 empty(); //判断 ...
分类:其他好文   时间:2021-05-24 06:33:00    阅读次数:0
JQuery 实现表单验证,所有验证通过方可提交
1 <html> 2 <head> 3 <meta http-equiv="content-type" content="text/html; charset=utf-8"> 4 <title>Reg</title> 5 <style> 6 .state1{ 7 color:#aaa; 8 } 9 ...
分类:Web程序   时间:2021-05-24 06:16:05    阅读次数:0
[beego学习] 表单文件上传
文件上传 1.前端加入表单 <form method="POST" , action = "/Upload", enctype="multipart/form-data"> <input type="file", name = "file"/><br> <input type="submit", v ...
分类:Web程序   时间:2021-05-24 05:55:31    阅读次数:0
new
new 和 delete 的执行过程 new 的执行过程 通过 operator new 申请内存 调用构造函数(简单类型忽略此步) 返回内存指针 delete 的执行过程 调用析构函数(简单类型忽略此步) 释放内存 using namespace std; class T { public: T( ...
分类:其他好文   时间:2021-05-24 05:50:59    阅读次数:0
java使用Redis分布式锁处理并发,解决超卖问题
一、使用Apache ab模拟并发压测 1、压测工具介绍 $ ab -n 100 -c 100 http://www.baidu.com/ -n表示发出100个请求,-c模拟100个并发,相当是100个人同时访问。 还可以这样写: $ ab -t 60 -c 100 http://www.baidu ...
分类:编程语言   时间:2021-05-24 05:16:43    阅读次数:0
58010条   上一页 1 ... 13 14 15 16 17 ... 5801 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!