摘要: //C语言的简单密码输入输出实现***基于WIN系统的键盘识别,编译环境:VS2019 阅读全文
posted @ 2020-07-25 09:41 狗狗王 阅读(1430) 评论(0) 推荐(0) 编辑
摘要: <!doctype html> <html> <head> <title>双色球号码随机生成</title> <script type="text/javascript"> function generateBall(){ var redBall = []; var blueBall; for(va 阅读全文
posted @ 2023-02-18 19:24 狗狗王 阅读(561) 评论(0) 推荐(0) 编辑
摘要: /***************随机生成彩票号码(双色球)***//**************编译器C4droid********************************/ #include <iostream> #include<stdio.h> #include<stdlib.h> # 阅读全文
posted @ 2020-07-31 18:10 狗狗王 阅读(1392) 评论(0) 推荐(0) 编辑
摘要: 1 #include "stdafx.h" 2 #include <graphics.h> // 引用图形库头文件 3 #include <conio.h> 4 #include<stdlib.h> 5 #include<math.h> 6 #define PI 3.1415926 7 int ma 阅读全文
posted @ 2020-07-16 01:13 狗狗王 阅读(245) 评论(0) 推荐(0) 编辑
摘要: #include "StdAfx.h" #include<stdio.h> #include<stdlib.h> int main() { int a,b,c,d,e,f,g,h,i; ///////////////////输入起始时间/////////////////////// while(1) 阅读全文
posted @ 2020-07-13 17:35 狗狗王 阅读(292) 评论(0) 推荐(0) 编辑
摘要: using System.Threading.Tasks; using System.Threading; using System.Net.Sockets; using System.Net; Task t = new Task(() => { //To Do you code 也可以在这直接调用 阅读全文
posted @ 2020-04-28 00:02 狗狗王 阅读(541) 评论(0) 推荐(0) 编辑
摘要: 1 ① 2 Control.CheckForIllegalCrossThreadCalls = false;//关闭安全检查,为了安全一般不采用此代码 3 4 5 ② 6 一般多线程代码:不能实现跨线程数据交互: 7 Thread thread = new Thread(new ThreadStar 阅读全文
posted @ 2020-04-21 00:02 狗狗王 阅读(1987) 评论(0) 推荐(0) 编辑
摘要: //定义随机数产生函数 static int GetRandomNumber(int min, int max) { int rtn = 0; Random r = new Random(); byte[] buffer = Guid.NewGuid().ToByteArray(); int iSe 阅读全文
posted @ 2019-12-24 19:58 狗狗王 阅读(1553) 评论(0) 推荐(0) 编辑
摘要: bool dbExist = File.Exists("DB.sqlite"); //通过File.Exists函数判断数据库文件是否已经存在,BOOL返回值为真或者假(TURL FALSE) if (dbExist == false) //如果不存在,就创建 阅读全文
posted @ 2019-10-14 09:09 狗狗王 阅读(859) 评论(0) 推荐(0) 编辑
摘要: 一、DLL生成(需要.h和.c两个文件) add.h内容: #ifndef _DLL_H_ #define _DLL_H_ #if BUILDING_DLL #define DLLIMPORT __declspec(dllexport) #else #define DLLIMPORT __declspec(dllimport) #endif DLLIMPORT int Add(); ... 阅读全文
posted @ 2019-10-14 09:07 狗狗王 阅读(244) 评论(0) 推荐(0) 编辑