Quantcast
Channel: CSDN博客推荐文章
Browsing all 35570 articles
Browse latest View live

POJ 3114 Countries in War

Countries in War Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 1857   Accepted: 582 Description In the year 2050, after different attempts of the UN to maintain peace in the world, the...

View Article


Image may be NSFW.
Clik here to view.

【OpenCV】使用floodfill()实现PhotoShop魔棒功能

在OpenCV中看到一个很有意思的函数:floodfill()使用给定颜色填充一个联通的区域C++: int floodFill(InputOutputArray image, Point seedPoint,  Scalar newVal, Rect* rect=0, Scalar loDiff=Scalar(),  Scalar upDiff=Scalar(), int flags=4 )...

View Article


Image may be NSFW.
Clik here to view.

struts2中使用freemarker 生成静态页面

按一下步骤走: 1.创建项目 2.导入struts2的相关jar文件 3.在web.xml中配置如下: <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"...

View Article

Image may be NSFW.
Clik here to view.

php实战第十天

今天算是把瀑布流留言板前台后台做完了.先上图欣赏下吧. 今天学习到的东西 serialize()串行化 unserialize()反串行化 由这两函数,编写出了 config_set() 和 config_get() 两函数. /** * 用于写出数组配置 */ function config_set($fileName,$arr_var){...

View Article

Image may be NSFW.
Clik here to view.

深度探索QT窗口系统---布局篇

...

View Article


Log4net 多线程写入

问题描述: 系统经常出现log无缘无故的丢失,每次系统出问题时去查log时发现log没有,郁闷了好久。 今天搞了将近一天,终于搞定。 解决步骤:...

View Article

Image may be NSFW.
Clik here to view.

Linux安装mysql——源码安装

Linux安装mysql——源码安装 1.假设已经有mysql-5.5.10.tar.gz以及cmake-2.8.4.tar.gz两个源文件 (1)先安装cmake(mysql5.5以后是通过cmake来编译的) [root@ rhel5 local]#tar -zxv -f cmake-2.8.4.tar.gz [root@ rhel5 local]#cd cmake-2.8.4 [root@...

View Article

监听独立于数据库服务器的配置,解决ORA-12520及ORA-12545错误

一、环境: 1、linux主机ocm(192.168.217.130)作为数据库 sys@OCM> select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise...

View Article


Image may be NSFW.
Clik here to view.

聚类小文(一)

聚类 二维空间中六个数据点集 作者:LiFeitengup 发表于2013-5-29 23:58:48 原文链接 阅读:151 评论:0 查看评论

View Article


Image may be NSFW.
Clik here to view.

聚类小文(二)

聚类 三维空间中分布在两条直线上的点 作者:LiFeitengup 发表于2013-5-30 0:02:39 原文链接 阅读:258 评论:0 查看评论

View Article

Core Java Question List #6

What restrictions are placed on the location of a package statement within a source code file? A package statement must appear as the first line in a source code file (excluding blank lines and...

View Article

Image may be NSFW.
Clik here to view.

H-JTAG ARM仿真器和MDK 联调设置

1      H-JTAG 和MDK 联调设置 1.在 H-JTAG 主界面的菜单里点 Setting->USB/LPT Selection Setting->LPT Port Settings Note:“0x2CF8”数值根据电脑并行端口而定,参考(设备管理器à端口(COM and LPT)àLPT3右键属性à资源,如下图所示) Setting->LPT JTAG...

View Article

hdu - 1829 - A Bug's Life

题意:判断一个图是否为二分图。 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1829 ——>>直接dfs。 #include<cstdio> #include<cstring> #include<vector> using namespace std; const int maxn = 2000 +...

View Article


游戏地图掩码相关(msk)

      在游戏的世界里,玩家在地图上的某点,是否能够走动,是否遇到障碍,是否是走到了阴影处,是否水层等等先关信息都要我们前后端知道。 那么服务器是如何进行实现的呢。下面主要给大家讲讲。      首先,我们知道图片是以像素为主要为单位进行计量,但是我们后端又不能使用这个东西,在二维的世界观里,我们是以坐标(x,y)具体的表现出其某个东西,所在的位置。因此,我们就要通过这个像素来表达出地点。...

View Article

magento580站群系统平台

magento580专业打造的magento站群管理平台,功能列表如下:...

View Article


poj1087 A Plug for UNIX

A Plug for UNIX Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 12438 Accepted: 4136 Description You are in charge of setting up the press room for the inaugural meeting of the United...

View Article

Image may be NSFW.
Clik here to view.

Android 抽屉导航

先看看效果 使用最新的android-support-v4.jar <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/drawer_layout"...

View Article


hdu 2112 hdu today

被这个水题虐了一晚上,就是因为tot没有初始化,初始化为0的时候就是不超时的时候。这个题目其实还是单源点最短路,稍微有点微不足道的难度,那就是这个题目城市的代号不再是简单的数字了,取而代之的是string的类型。其实很好办,你用map处理一下,这个题目立刻就被打回原形了。这个题目我还是用spfa算法进行的处理,因为这个算法真的挺好用的。直接就是模板题。擦,还被这个悲催的tot摆了一道。...

View Article

hdu 1234开门人和关门人

题号不错,1234.提议很简单,现在给你几组数据然后让你找出开门人和关门人。题目形式看下面的链接点击打开链接。其实就是水水的string处理,不过话说string的强度不止这些,过几天省赛回来写一个下次用吧。因为string是不管什么比赛都会出现的所以stl和string等函数就比较受acmer的欢迎。 #include <iostream> #include...

View Article

Image may be NSFW.
Clik here to view.

一步一步写STL:空间配置器(1)

侯捷说:追踪一流程序,并从中吸取养分,模仿着他写的程序,比那些自以为靠自己努力写出来的下三流程序价值高得多,至少我这么认为——世界上99.999%的程序,在STL面前都是下三流水平!...

View Article
Browsing all 35570 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>