import java.io.*;import java.util.*;import
java.util.concurrent.*;public class SearchFile{ public static void main(String
... strings) { final int FI....
分类:
其他好文 时间:
2014-05-01 13:18:50
阅读次数:
253
public static class ExtensionMethods{/// ///
将List转换成DataTable/// /// /// /// public static DataTable ToDataTable(this IList
data){PropertyDescriptorC...
分类:
其他好文 时间:
2014-05-01 13:03:47
阅读次数:
355
方法一: 使用纯WIN32 DLL方法封装纯资源第一步,通过VS2005建立WIN32 DLL
空工程第二步,设置配置属性->链接器->高级->无入口点(是/NOENTRY)设置配置属性->C/C++->代码生成->运行时库(多线程/MT)第三步,加入图片资源并定义资源名称第四步,生成DLL,如Sk...
分类:
其他好文 时间:
2014-04-30 23:10:29
阅读次数:
470
这里将创建一个自定义的Panel,命名为TestPanel。
如果单机了TestPanel的标题,则有事件headerClick进行响应。
<s:Panel xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe....
分类:
其他好文 时间:
2014-04-29 13:46:20
阅读次数:
435
windows下面可以主线程while loop接受input;但是觉得很丑。
linux没办法这样,可以用注册信号的办法。实现起来也不难:
#include "stdio.h"
#include "unistd.h"
#include "signal.h"
#include "error.h"
volatile bool isStop = false;
static void handl...
分类:
其他好文 时间:
2014-04-29 13:42:21
阅读次数:
418
#include
using namespace std;
template
class testClass{
public:
static int _data;
};
int testClass::_data = 1;
int testClass::_data = 2;
int main()
{
cout ::_data << endl;
cout ::_data << ...
分类:
其他好文 时间:
2014-04-29 13:21:20
阅读次数:
410
欢迎转载,转载请声明出处!
-----------------------------------------
前言:
java语言中,参数的传递只有一种机制,那就是值传递。
举例:
下面将通过几个例子来说明java中的参数传递机制,这些例子基本涵盖了所有参数传递的情况。
1.基本数据类型:
public static void testBase(int i)...
分类:
编程语言 时间:
2014-04-28 10:11:40
阅读次数:
379
首先打开终端(在搜索里面搜索Te即可出来)
然后输入 cd /Library/Java/Home/bin/然后这步很关键,由于我们用的是当前用户,所以没有最高权限,不能在Library文件夹下生成任何文件,所以照抄网上的方法是无法创建成功的,复制粘贴步骤4的内容。keytool -genkey -v -keystore android.keystore -alias android -keya...
分类:
移动开发 时间:
2014-04-27 22:45:18
阅读次数:
486
看了一下Linux 0.11版本write的实现,首先它在标准头文件unistd.h中有定义
int write(int fildes, const char * buf, off_t count);
接下来看write.c
/*
* linux/lib/write.c
*
* (C) 1991 Linus Torvalds
*/
#define __LIBRARY__...
分类:
系统相关 时间:
2014-04-27 21:45:04
阅读次数:
523
program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace Tst
{
class Program
{
static void Main(string[] arg...
分类:
移动开发 时间:
2014-04-27 21:35:59
阅读次数:
467