码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
实时控制软件设计第二次编程作业
1 #include 2 #include"robot.h" 3 /* run this program using the console pauser or add your own getch, system("pause") or input loop */ 4 5 int ...
分类:其他好文   时间:2015-12-19 23:06:28    阅读次数:238
Trie UVA 11732 "strcmp()" Anyone?
题目传送门题意:询问所有字符串的比较次数和(注意for循环内的比较也算)分析:将所有字符串插入到字典树上,然后结点信息记录有几个字符串,那么每走到一个结点就能知道比较到此时需要的次数。学习到链表存结点#include using namespace std;typedef long long ll;...
分类:其他好文   时间:2015-12-19 20:33:28    阅读次数:211
缓存常用操作
using System;using System.Web.Caching;using System.Web;using System.Collections;using System.Text.RegularExpressions; namespace Tools{ /// /// ...
分类:其他好文   时间:2015-12-19 19:14:02    阅读次数:147
造轮子_Windows服务操作之sc和net命令
看个粟子:1、“新建项目”——“Window服务”生成的目录结构双击“MainService.cs”,右键点击“添加安装程序”,自动会生成Projectinstaller.cs文件以及两个安装组件,对两个组件更名并做属性设置:对服务的启动与停止添加代码using System;using Syste...
分类:Windows程序   时间:2015-12-19 19:09:32    阅读次数:276
codevs 1082 线段树练习3 模板题
1 #include 2 #include 3 #include 4 using namespace std; 5 long long a[2000003],sum[10000003],add[10000003],n; 6 void pushup(long long rt){sum[rt]=sum....
分类:其他好文   时间:2015-12-19 19:09:14    阅读次数:179
[工具]图片等比例压缩工具
写在前面在网盘中有这样一个功能,需要获取所有图片的列表,想来想去,觉得还是生成相同比例的图片,在排版上更美观一些。所以就没事高了一个压缩的工具玩玩。代码using System;using System.Collections.Generic;using System.ComponentModel;...
分类:其他好文   时间:2015-12-19 17:57:14    阅读次数:281
[BZOJ1007]水平可见直线
发现其实是一个下凸壳,所以先按斜率排序,然后判断当前直线与栈顶直线的交点是否更靠右 注意平行的情况 1 #include 2 using namespace std; 3 4 #define maxn 50005 5 #define esp 1e-8 6 struct node{ 7 ...
分类:其他好文   时间:2015-12-19 17:53:52    阅读次数:223
C++总的const使用说明
C++总的const使用说明1. const修饰类成员变量 程序:#include using namespace std;class A{ public: A(int size) : SIZE(size) {}; private: const int SI...
分类:编程语言   时间:2015-12-19 17:49:51    阅读次数:294
Using databases and Structured Query Language (SQL)
//The code to create a database file and a table named Tracks with two columns in the database is as follows:1 #!/usr/bin/python2 import sqlite33 conn...
分类:数据库   时间:2015-12-19 16:36:06    阅读次数:332
uva 10245 近期点对问题
分治法的典例当练手了奇妙的是。使用inplace_merge按说应该是O(n)的算法。可是用sort nlogn的算法反而更快先上快排版#include #include #include #include #include using namespace std;const int SIZE = ...
分类:其他好文   时间:2015-12-19 16:26:14    阅读次数:167
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!