现在位置: 首页 > tweeter发表的所有文章
  • 12月
  • 27日
综合 ⁄ 共 669字 评论关闭
这题数据有问题,看了好多用spfa的代码下面的测试实例结果不一样都ac了 6 5 1 2 1 10 10 2 3 4 10 100 2 4 2 15 15 4 1 1 12 12 3 6 6 10 10 费用67   用dfs,控制每个点走的次数,控制三次就可以,数据水,两次就能ac           #include<stdio.h> #include<string.h> #include<stdlib.h> int n,m,max; int vis[11]; struct ed { int x,y,z,w1,w2; }e[11]; void dfs(int s,int cost) { int i; if(s==n) { if(cost<max) max=cost; return; } for(i=0;i<m;i++) { i......
阅读全文
  • 08月
  • 25日
综合 ⁄ 共 1719字 评论关闭
在S5PV210 ANDROID2.3 平台上做了一个initlogo.rle 显示不正常。 原因是initlogo.rle是16位数据,而我们的LCD是32位的,需要将initlogo.rle转换位32位的。     源码路径:android_source/system/core/init/logo.c #define fb_size(fb) ((fb)->vi.xres * (fb)->vi.yres * 2)  是用于16位的,修改如下: #define fb_size(fb) ((fb)->vi.xres * (fb)->vi.yres * ((fb)->vi.bits_per_pixel/8)) 添加  #define fb_bpp(fb) ((fb)->vi.bits_per_pixel) //帧缓冲设备的每像素位数         在函数 int load_565rle_image(......
阅读全文
  • 07月
  • 02日
综合 ⁄ 共 1720字 评论关闭
查看更多 qt中使用图片的方法 图片是一种资源,而在Qt中,对于资源的使用是有其独特的方式的!      ①:一般来说:资源在内存中是用资源对象树来表示的,该树在程序启动时创建。      ②:而对于资源而言:我们都是需要先将其加入到这棵树中才能加载到内存中并被程序使用!!      ③:而将一个图片资源放到程序的资源对象树中是用函数QResource::registerResource()来实现的。亦即:要将资源向这颗资源对象树进行注册,这样才对在系统中new创建这个资“叶子”。   Qt中经常会使用一些图片作为程序的界面,经常用的有三种方法,这里借......
阅读全文
  • 06月
  • 09日
综合 ⁄ 共 155字 评论关闭
原文:SSH2注册登陆 源代码下载地址:http://www.zuidaima.com/share/1550463696620544.htm SSH2注册登陆 注册页面 访问地址:localhost:端口/项目名称/reg.jsp 注册成功 登陆页面 访问地址:localhost:端口/项目名称/login.jsp 登陆成功
阅读全文
  • 05月
  • 15日
综合 ⁄ 共 9487字 评论关闭
Ajax 由 HTML、JavaScript™ 技术、DHTML 和 DOM 组成,这一杰出的方法可以将笨拙的 Web 界面转化成交互性的 Ajax 应用程序。本系列的作者是一位 Ajax 专家,他演示了这些技术如何协同工作 —— 从总体概述到细节的讨论 —— 使高效的 Web 开发成为现实。他还揭开了 Ajax 核心概念的神秘面纱,包括 XMLHttpRequest 对象。五年前,如果不知道 XML,您就是一只无人重视的丑小鸭。十八个月前,Ruby 成了关注的中心,不知道 Ruby 的程序员只能坐冷板凳了。今天,如果想跟上最新的技术时尚,那您的目标就是 Ajax。但是,Ajax 不仅仅 是一种时......
阅读全文
  • 03月
  • 15日
综合 ⁄ 共 3643字 评论关闭
摘要 Install Oracle Java JDK 1.8 On CentOS 6.5 目录[-] Download And Install Oracle Java JDK Check Java version What if I didn’t remove the old JDK versions from my system? By default, all Linux distributions comes with openjdk preinstalled. If you want to install and use Oracle Java JDK/JRE on your system, Just follow the steps below. In this tutorial, let us see how to install and configure latest Oracle Java JDK on CentOS 6.5 server, although It should work on other RPM ba......
阅读全文
  • 02月
  • 06日
综合 ⁄ 共 15082字 评论关闭
  using System;using System.Net;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.HtmlControls;using System.Data;using System.Data.OleDb;using System.IO;using System.Text;using System.Globalization;using System.Text.RegularExpressions;namespace GETURL  ...{   public class getText : System.Web.UI.Page    ...{    protected System.W......
阅读全文
  • 01月
  • 27日
综合 ⁄ 共 997字 评论关闭
在sql server中,日期型字段,在数据库中默认是以类似"年-月-日 时:分:秒"的格式存在的,但若直接转换为字符串的话则会类似这样的格式"07 25 2007   4:58PM",如果我们需要查询时查询日期等于当天的记录,则应该这样写     select * from table where convert(char,service_date,111) = convert(char,getdate(),111) 这里service_date为时间字段的名字,convert(char,service_date,111),则将service_date字段转化为类似"2007/07/25"这样的字符串格式,如果我们想要转化为类似'2007-07-25'这样的格式,则可以再用sqlse......
阅读全文
  • 12月
  • 04日
综合 ⁄ 共 85字 评论关闭
原文:quartz spring配置实例代码demo下载 源代码下载地址:http://www.zuidaima.com/share/1550463459560448.htm
阅读全文
  • 11月
  • 25日
综合 ⁄ 共 6411字 评论关闭
URL:http://www.cnblogs.com/ltp/archive/2005/12/03/289689.html 创建型模式 1、FACTORY —追MM少不了请吃饭了,麦当劳的鸡翅和肯德基的鸡翅都是MM爱吃的东西,虽然口味有所不同,但不管你带MM去麦当劳或肯德基,只管向服务员说“来四个鸡翅”就行了。麦当劳和肯德基就是生产鸡翅的Factory 工厂模式:客户类和工厂类分开。消费者任何时候需要某种产品,只需向工厂请求即可。消费者无须修改就可以接纳新产品。缺点是当产品修改时,工厂类也要做相应的修改。如:如何创建及如何向客户端提供。 2、BUILDER  —MM最爱听的就是“我爱你”......
阅读全文
  • 10月
  • 03日
综合 ⁄ 共 2110字 评论关闭
1.nvl( ) 函数  -------oracle 从两个表达式返回一个非 null 值。 语法  NVL(eExpression1, eExpression2) 参数  eExpression1, eExpression2  如果 eExpression1 的计算结果为 null 值,则 NVL( ) 返回 eExpression2。如果 eExpression1 的计算结果不是 null 值,则返回 eExpression1。eExpression1 和 eExpression2 可以是任意一种数据类型。如果 eExpression1 与 eExpression2 的结果皆为 null 值,则 NVL( ) 返回 .NULL.。 返回值类型  字符型、日期型、日期时间型、数值型、货币型、逻辑型或 null 值 说明  在不支持 null......
阅读全文
  • 09月
  • 08日
综合 ⁄ 共 2796字 评论关闭
unit Unit1; interface uses  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,  Dialogs, StdCtrls, accctrl; type  TForm1 = class(TForm)    Button1: TButton;    Edit1: TEdit;    Edit2: TEdit;    Label1: TLabel;    Label2: TLabel;    Button2: TButton;    procedure Button1Click(Sender: TObject);    procedure Button2Click(Sender: TObject);  private    { Private declarations }  public    { Public declarations }  end;   TSHARE_INFO_502 = record      shi502_netname: PWide......
阅读全文