摘要: 一、类的定义package com.StaticKeyword;public class Staff { private static String country="China"; private int id; private String name; static void setCountryAndPrint(String _country) { country=_country;// 由于country不是专属某个特定的类,因此不能以this.country=country;的形式访问 System.out.println("T... 阅读全文
posted @ 2011-10-20 22:28 edisonfeng 阅读(15358) 评论(0) 推荐(0) 编辑
摘要: 一、按整型格式存储,强转成整型格式显示var arrForInteger:array[1..4] of Char;//也可以是 arrForInteger:array[0..3] of Charbegin ShowMessage('测试类型强转!'); PInteger(@arrForInteger)^:=1234567; //以整型格式存入 ShowMessage('字节数组强转成整型格式:'+IntToStr(PInteger(@arrForInteger)^)); //强转成整型end;运行结果:二、按整型格式存储,强转成字符数字格式显示var arrFo 阅读全文
posted @ 2011-10-20 20:26 edisonfeng 阅读(762) 评论(0) 推荐(0) 编辑