usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
namespace_19.流程控制之无限循环
{
classProgram
{
staticvoidMain(string[]args)
{
//无限循环也称死循环,永不终止的循环。
//使用do...while语句书写无限循环
{
do
{
}while(true);
}..
分类:
其他好文 时间:
2014-12-07 06:40:54
阅读次数:
143
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
namespace_20.枚举类型
{
enumorientation:byte
{
north=1,
south=2,
east=3,
west=4
}
classProgram
{
staticvoidMain(string[]args)
{
/**
*枚举类型:
*使用enum关键字定义枚举类型。..
分类:
其他好文 时间:
2014-12-07 06:38:58
阅读次数:
124
doom3的UI系统是纯数据驱动的,例如
windowDef TextTitle2
{
rect 20,341,600,55
visible 1
text "#str_00073"
forecolor 0.6,1,1,0
textscale 0.8
font "fonts/micro"
...
分类:
其他好文 时间:
2014-12-07 00:11:04
阅读次数:
262
BBCyclingLabelBBCyclingLabelis just like aUILabelbut allows you to perform custom animations when changing text.Instead of using twoUILabel's and cros...
分类:
其他好文 时间:
2014-12-07 00:01:25
阅读次数:
529
常用蓝色标注 ?<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><!-- 设置页面编码 --> <meta http-equiv="Content-Language" content="zh-CN" /><!--设置页面语言 --> <meta http-equiv...
分类:
Web程序 时间:
2014-12-06 22:57:26
阅读次数:
166
在excel2007中,数据——>数据工具——>删除重复项也可使用高级筛选:数据——>排序和筛选中的高级——>弹出高级筛选对话框,设置列表区域和条件区域,并勾选“选择不重复记录”——>确定
分类:
其他好文 时间:
2014-12-06 21:31:52
阅读次数:
193
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1{ class...
分类:
编程语言 时间:
2014-12-06 18:09:53
阅读次数:
140
一、映射模式基本概念映射模式是设备描述表属性,用于确定从逻辑坐标值到设备坐标值的转换方式。传送给CDC输出函数的是逻辑坐标值。设备坐标值是指窗口中相应的像素点位置。MM_TEXT为默认映射模式,如果使用其他映射模式,可调用CDC::SetMapMode()。1 dc.SetMapMode(MM_LO...
分类:
编程语言 时间:
2014-12-06 16:48:02
阅读次数:
346
1、代码改变Label文本颜色:lbl.text = "[00ff00]Hello world!";2、自适应屏幕利用设置Anchors来实现3、作为背景的Sprite一般类型为Sliced4、UIEvents-事件系统void OnHover (bool isOver):当鼠标移出或者悬停在某个碰...
分类:
编程语言 时间:
2014-12-06 16:34:46
阅读次数:
207
原文:js和C#中的编码和解码同一个字符串,用URL编码和HTML编码,结果是完全不同的。
JS中的URL编码和解码 encodeURIComponent("text") //url编码
decodeURIComponent("text") //url解码 JS中的HTML编码和解码 escape(...