编程语言[总排行] [月排行] [周排行] [日排行]
KMP算法是字符串匹配的一个经典算法...
分类:编程语言 时间:2014-05-22 09:42:38 阅读:395
#include void main(){ const int count = 5;//定义数量 struct student{ char name[80]; float math,eng; float aver; }stu[count],temp; //输入 for (int i = 0; i scanf("%s%f%f", stu[i].name, &stu[i].m...
分类:编程语言 时间:2014-05-22 11:21:15 阅读:312
用Javascript取float型小数点后两位,例22.127456取成22.13,如何做? 1.这种方法最不推荐: function get(){ var s = 22.127456 + ""; var str = s.substring(0,s.indexOf(".") + 3); alert(str); } 2. 使用正则表达式获取: function g...
分类:编程语言 时间:2014-05-23 08:06:59 阅读:249
QQ群:289150599 什么是AOP AOP(Aspect-OrientedProgramming,面向方面编程),可以说是OOP(Object-Oriented Programing,面向对象编程)的补充和完善。OOP引入封装、继承和多态性等概念来建立一种对象层次结构,用以模拟公共行为的一个集合。当我们需要为分散的对象引入公共行为的时候,OOP则显得无能为力。也就是说,OOP...
分类:编程语言 时间:2014-05-20 16:36:32 阅读:267
//编写一个程序,让用户可以一次性输入任意多行文本 /*  * OutPutTest.cpp  *  *  Created on: 2014年5月19日  *      Author: John  */ #include #include #include #define COL_WIDTH 80 using namespace std; int main(){ ofstrea...
分类:编程语言 时间:2014-05-22 10:42:34 阅读:350
说明:该部分内容为《OpenCV Computer Vision with Python》读书笔记。1.读入文件与保存。import cv2 image=cv2.imread('a.jpg') cv2.imwrite('b.jpg',image) 2.以灰度方式 读取进来(此时会丢失部分信息),然后将其保存。import cv2 grayImage = cv2.imread('a.jpg', cv...
分类:编程语言 时间:2014-05-22 07:44:15 阅读:321
Java 正则表达式匹配邮箱地址...
分类:编程语言 时间:2014-05-22 06:40:09 阅读:237
import cv2 import numpy import os # Make an array of 120,000 random bytes. randomByteArray = bytearray(os.urandom(120000)) flatNumpyArray = numpy.array(randomByteArray) # Convert the array to make a ...
分类:编程语言 时间:2014-05-22 08:41:08 阅读:353
最严格的身份证校验(JavaScript版)...
分类:编程语言 时间:2014-05-22 11:20:30 阅读:274
Java 字符串生成器(StringBuilder)...
分类:编程语言 时间:2014-05-22 08:40:32 阅读:301
145000450014500245345
上一页453443下一页
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!