隐藏窗体,打开窗体后如果想让它隐藏,然后再显示出来,就判断是不是NULL或者有没有关闭,不然就NEW一个出来,否则就SHOW出来。当然如果有隐藏的话退出的时候最好用Application.Exit()来关闭程序。 Form fh; private void button6...
对文件内容的操作NSFileHandle文件句柄1 NSFileHandle * fh = [NSFileHandle fileHandleForReadingAtPath:@""]; //以只读方式打开文件生成文件句柄 内存:内部存储器;硬盘:外部存储设备。 从硬盘到内存(从文件到内存)叫做读,从...
分类:
其他好文 时间:
2015-06-01 00:36:11
阅读次数:
255
整数运算 1 public class Zhengshu { 2 int zs1,zs2,sum=1;int fh; 3 Zhengshu(){ 4 5 } 6 Zhengshu(int Zs1,int Fh,int Zs2){ 7 ...
分类:
其他好文 时间:
2015-04-30 14:03:15
阅读次数:
107
背景简介:
Ubuntu安装后,root用户默认是被锁定了的,不允许登录,也不允许“su”到 root。对于桌面用户来说,这样安全性更高一些,是应该的;但对于服务器可以设置成“允许 su 到root,但不允许root用户直接登录”。
参考资料:
http://www.zxlm.cn/fh/thread-8061-1-1.html
http://os.51cto.com/art...
分类:
系统相关 时间:
2015-04-29 10:06:10
阅读次数:
179
#include#include#includeint cc,i,n,z;//操作数int count;//题目数目int max,min;//数据的最大值、最小值int dt=0;//记录做对题目的数目int shu[4];char fh[4]={'+','-','*','/'};void zhe...
分类:
其他好文 时间:
2015-04-09 21:16:20
阅读次数:
170
#include#include#includeint cc,i,n,z;//操作数int count;//题目数目int max,min;//数据的最大值、最小值int dt=0;//记录做对题目的数目int shu[4];char fh[4]={'+','-','*','/'};void zhe...
分类:
其他好文 时间:
2015-04-09 19:22:33
阅读次数:
191
本次测试主要测试数值的取值范围。代码如下:#include#include#includeint main(){ srand(time(NULL)); int sz; //sz 即数值取值范围 char fh; //fh即四则...
分类:
其他好文 时间:
2015-03-16 16:15:09
阅读次数:
110
(官网:www.libgdx.cn)
接下来的示例说明怎样进行截屏并且保存为PNG格式。
public class ScreenshotFactory {
private static int counter = 1;
public static void saveScreenshot(){
try{
FileHandle fh;
do{
...
分类:
其他好文 时间:
2015-02-13 09:19:25
阅读次数:
144
程序源码usestrict;openmy$fh,"ipconfig/all|"ordie"can‘tfindcmdipconfig/all:$!";my(%mac_ip_hash,$ip_address,$mac_address);while(defined(my$line1=<$fh>)){if($line1=~/^Windows/){print"WindowsIPConfigure:\n"};if($line1=~/([0-9A-F][0-9A-F]-[0-9A-F][0-9A-F]-..