⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kapplication.h

📁 这是一个魔头罗拉e680的qt手机游戏的源代码
💻 H
字号:
#include <stdio.h>#include <stdlib.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>#include <time.h>static int _random() {        static int init = false;        if (!init) {            unsigned int seed;            init = true;            int fd = ::open("/dev/urandom", O_RDONLY);            if( fd<=0 || ::read(fd, &seed, sizeof(seed)) != sizeof(seed) ) {                srand(getpid());                seed = rand()+time(0);            }            if(fd>=0) close( fd );            srand(seed);        }        return rand();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -