`
Fecoly
  • 浏览: 7166 次
  • 性别: Icon_minigender_1
  • 来自: 重庆
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论
文章列表
C/C++ API函数
#include <iostream> using namespace std; time_t temp_time; srand((unsigned)time(&temp_time));//初始化随机种子 int r = (rand() % 256); //0-255 int r1 = (rand() % 10); //0-9 int r2 = (rand() % 100); //0-99
Linux系统 使用gettimeofday接口:gettimeofday能得到微秒数,比毫秒还要更精确。 #include <stdio.h> #include <sys/time.h> int main() {     struct timeval start, end;     gettimeofday( &start, NULL );     sleep(3);     gettimeofday( &end, NULL );     int timeuse = 1000000 * ( end.tv_sec - start.tv_sec ) + ...
一个小巧的屏幕颜色拾取器,可用于HTML,VC++... 红蜻蜓截图软件
SecureCRT_PortableSoft
解决方法: ______________________________________ 一、开启SSH 以root用户登录Linux,打开终端,运行: /etc/init.d/sshd restrat ______________________________________ 二、关闭防火墙 1.在终端运行 setup 2,.选择 firewall 回车 3.按tab键切换到disablede项,然后按空格键选择,然后再按tab键切换到ok,按空格件选择 4.按tab键切换到quit,按空格件选择 然后用客户端ssh登录Linux ___________________ ...
//C++创建文件夹 bool CreateFolder(string path) {     char* fileName = (char*)path.c_str();     char* tag;     for(tag = fileName; *tag; tag++)     {         if ('\\' == *tag || '/' == *tag)         {             char buf[1000];             char path[1000];             strcpy(buf, fileName); ...
android系统自带system/app下载 http://download.csdn.net/download/lin2221021/3551265   Android在Git上的所有项目源码下载http://www.linuxidc.com/Linux/2011-03/33518.htm windows下安装git下载android源码 http://blog.csdn.net/fengkuanghun/article/details/7073389
public void gets(Class<?> clazz) throws Exception { Object e=clazz.newInstance(); //实例化对象 // 获取字段 java.lang.reflect.Field[] fies = clazz.getDeclaredFields(); // 获得全部字段 java.lang.reflect.Field[] pubFies = clazz.getFields(); // 获得全部公有字段 System.out.println("全部字段个数:" + fies.leng ...
Global site tag (gtag.js) - Google Analytics