首页 > 编程语言
C++模板求n!与1+2+...n
//求n!与1+2+...n #include using namespace std; template class A { public: //static int const result = 3*A::result; enum{result=_N*A::result};//求n! //enum{...
分类:编程语言   时间:2015-05-30 16:44:51    收藏:0  评论:0  赞:0  阅读:245
Poj(2352)——Stars(树状数组)
Description Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star be an amount of the stars that are ...
分类:编程语言   时间:2015-05-30 16:44:01    收藏:0  评论:0  赞:0  阅读:204
java中的异常详解
1、什么是异常处理 异常:程序在运行过程中的一些特殊情况,例如:内存不够用,文件找不到,对象是Null,数组下标越界。当产生这些特殊情况的时候,可能会造成程序不能正常运行。 异常处理:让程序在发生异常的时候能够正常执行。  2、异常分类 检查性异常,必须处理,如果不处理,编译不能通过。 非检查性异常,可以不处理,但是一旦发生,程序就不能继续运行。  3、对于非检查性异常...
分类:编程语言   时间:2015-05-30 16:42:21    收藏:0  评论:0  赞:0  阅读:136
javascript基础(第二天)
javascript基础 call, apply es3语法, Math Date Array RegExp Object Number Function等
分类:编程语言   时间:2015-05-30 16:36:41    收藏:0  评论:0  赞:0  阅读:199
Java开发环境配置
其实一开始我是拒绝Java的。但是我发现公司开发Java,然后一些‘大数据’的工具也是由Java写的。于是Duang的一下,我又重新开始Java之旅了。。。本文讲述Java在Windows下的开发环境配置。 下载JDK http://www.oracle.com/technetwork/java/j...
分类:编程语言   时间:2015-05-30 16:36:31    收藏:0  评论:0  赞:0  阅读:203
mybatis与spring的整合
spring mybatis
分类:编程语言   时间:2015-05-30 16:36:01    收藏:0  评论:0  赞:0  阅读:286
javascript基础(第三天)
javascript基础, es5语法基本全纪录,Object.create(); Object.defineProperty(); Object.defineProperties()
分类:编程语言   时间:2015-05-30 16:34:11    收藏:0  评论:0  赞:0  阅读:200
javascript基础(第四天)
javascript基础,es6语法基本全纪录
分类:编程语言   时间:2015-05-30 16:32:41    收藏:0  评论:0  赞:0  阅读:227
javascript基础(第五天)
javascript基础, js面向对象编程
分类:编程语言   时间:2015-05-30 16:31:31    收藏:0  评论:0  赞:0  阅读:226
[LeetCode][JavaScript]Reverse Linked List
Reverse Linked ListReverse a singly linked list.click to show more hints.Hint:A linked list can be reversed either iteratively or recursively. Could y...
分类:编程语言   时间:2015-05-30 16:28:51    收藏:0  评论:0  赞:0  阅读:216
javascript基础(第一天)
javascript,delete,===,for in,回调,闭包,函数返回值,this
分类:编程语言   时间:2015-05-30 16:26:41    收藏:0  评论:0  赞:0  阅读:243
PowerShell中进行文件读取,信息排序,分类计数。
这是国外某大学QA的一道作业题,读取mainlog文件中的每一行信息,并获取有效的信息,也就是每条信息中第四个@后面的内容,然后进行分类与计数,要求是用Perl写,但我是用PowerShell完成的,文件截图如下:代码如下: 1 4 function CheckInfo 5 { 6 par...
分类:编程语言   时间:2015-05-30 16:25:31    收藏:0  评论:0  赞:0  阅读:291
[LeetCode][JavaScript]Contains Duplicate II
Contains Duplicate IIGiven an array of integers and an integer k, return true if and only if there are two distinct indices i and j in the array such ...
分类:编程语言   时间:2015-05-30 16:25:21    收藏:0  评论:0  赞:0  阅读:347
跟踪算法
跟踪算法 红快攻击蓝块 跟踪算法
分类:编程语言   时间:2015-05-30 16:23:51    收藏:0  评论:0  赞:0  阅读:231
C语言结构体变量内存分配与地址对齐
地址对齐简单来说就是为了提高访问内存的速度。数组的地址分配比较简单,由于数据类型相同,地址对齐是一件自然而然的事情。结构体由于存在不同基本数据类型的组合,所以地址对齐存在不同情况,但总体来说有以下规则:原则1:数据成员对齐规则:结构的数据成员,第一个数据成员放在偏移量(offset)为0的地方,以后...
分类:编程语言   时间:2015-05-30 16:22:21    收藏:0  评论:0  赞:0  阅读:288
Python 排序
字典排序的原理就是把字典转化成可以迭代的list来进行排序 字典排序(复杂):dicts = {"4":{"key1":"a","num":1}, "2":{"key1":"a","num":2}, "3":{"key1":"a","num":3}, "1":{"key1":"a","num":4}} items = sorted(dicts....
分类:编程语言   时间:2015-05-30 15:18:51    收藏:0  评论:0  赞:0  阅读:271
快速排序
快速排序// 快速排序.cpp : 定义控制台应用程序的入口点。 //#include "stdafx.h" #include #include void quick_sort(int[],int,int,int); void main() { int data[20]; int size = 0, i; //要求输入数据直到数据为0...
分类:编程语言   时间:2015-05-30 15:18:31    收藏:0  评论:0  赞:0  阅读:257
c++ 基本使用
1 枚举 1 enum ShapeType 2 { 3 circle, 4 square, 5 rectangle 6 }; 7 8 int main() { 9 10 ShapeType shape = circle;11 12 switch(shape)...
分类:编程语言   时间:2015-05-30 15:15:21    收藏:0  评论:0  赞:0  阅读:263
Python 内置彩蛋
The Zen of Python, by Tim PetersBeautiful is better than ugly.Explicit is better than implicit.Simple is better than complex.Complex is better than co...
分类:编程语言   时间:2015-05-30 15:13:01    收藏:0  评论:0  赞:0  阅读:249
蓝缘系统第三版本即将开源;基于springMVC+Apache shiro? 1.2.3+Mybai
蓝缘系统第三版本即将开源;基于springMVC+Apache shiro 1.2.3+Mybaits3.x的权限系统,,开放源码,支持开源 1.0版和2.0版的源码已经开源 1.0版本:http://blog.csdn.net/mmm333zzz/article/details/16863543    ...
分类:编程语言   时间:2015-05-30 14:58:39    收藏:0  评论:0  赞:0  阅读:1506
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!