首先编写MyView类代码如下:package com.example.myhello;import android.content.Context;import android.graphics.Canvas;import android.graphics.Color;import android...
分类:
移动开发 时间:
2014-10-04 21:37:27
阅读次数:
226
_run(); $notecomputer->_run2();*//*interface 成员字段必须是常量 接口方法必须是抽象方法~ 并且不能写abstract 子类继承接口的说法,叫做实现, 可以多实现*/ interface Computer { c...
分类:
其他好文 时间:
2014-10-04 19:09:27
阅读次数:
179
看资料的时候常常看到各种VGA,全都混了,无奈,找了些资料总结了下,分享给大家:这些术语都是指屏幕的分辨率。VGA:Video Graphics Array,即:显示画图矩阵,相当于640×480 像素;HVGA:Half-size VGA,即:VGA的一半,分辨率为480×320,像三星盖世Ace...
分类:
移动开发 时间:
2014-10-04 14:27:06
阅读次数:
193
题意:求节点间的最大距离
先DFS一次 记录下 每一节点的子树下的最大距离(DP[ u ] [ 0 ])和第二大距离(DP[ u ] [ 1 ])
用DP[ v ] [ 2 ] 表示由v的父节点来的最大距离
再取DP[ u ] [ 0 ] 与 DP[ u ][ 2 ] 的最值
#include
#include
#include
#include
#include
#in...
分类:
其他好文 时间:
2014-10-04 12:51:06
阅读次数:
201
1443. Printer QueueConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionThe only printer in the computer science students' union is experienci...
分类:
其他好文 时间:
2014-10-04 02:44:45
阅读次数:
264
localhttp://localhost/----.phphttp://127.0.0.1/----.phplocalorLANhttp://computername/----.phpInternetuserhttp://IPadress/----.phphttp://computerrealmname/----.php
分类:
Web程序 时间:
2014-10-03 01:40:04
阅读次数:
175
效果图: 1 package testFour; 2 3 import java.awt.Color; 4 import java.awt.Dimension; 5 import java.awt.FontMetrics; 6 import java.awt.Graphics; 7...
分类:
编程语言 时间:
2014-10-02 20:27:44
阅读次数:
226
Ruby是一种面向对象编程语言,这意味着它操纵的编程结构称为"对象"先上代码, 了解类的定义与使用方式class Computer $manufacturer = "Mango Computer, Inc." @@files = {hello: "Hello, world!"} def i...
分类:
其他好文 时间:
2014-10-02 18:17:43
阅读次数:
154
Time Limit:1000MSMemory Limit:10000KTotal Submissions:11433Accepted:4551DescriptionA number of schools are connected to a computer network. Agreements...
分类:
Web程序 时间:
2014-10-01 20:20:41
阅读次数:
222
/// /// 绘制任意间距文字/// /// 文本 /// 绘图对象 /// 起始位置 /// 字体 /// 画刷 /// 间距 private void DrawStringEx(string text, Graphics g, PointF startPoint, Font fon...
分类:
其他好文 时间:
2014-09-30 23:36:00
阅读次数:
163