using system.data.sqlusing system.data.sqlclientdataset ds= new dataset();string connectionString=连接字符串string commandString=查询语句(如"select * from 表 whe ...
网上很多创建Widows Service 的方法,其安装和运行服务的方式大多是通过cmd 命令来实现的,这里将通过控制台的形式实现安装、运行和卸载服务。 主页代码: 1 using KQService.Job; 2 using KQService.Utils; 3 using System; 4 u ...
Step1:创建工具类 NetWorkManger 实现服务器和客户端的连接和消息的发送 创建该类需要导入命名空间: using System; using System.Net; using System.Net.Sockets; using System.Text; 将工具类设置为单例类: pu ...
分类:
其他好文 时间:
2020-06-10 11:26:48
阅读次数:
61
主窗口效果 主窗口代码 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; u ...
源地址:首行数据 如何快速转为 变量名 ? 在日常工作中,我们导入的数据常常不那么规范,如下图所示,原本的变量名处在变量值的位置,若要重新提取变量名,单个变量依次重命名显然繁琐,那么我们有什么快捷的方法呢? convert_top_lines ssc install convert_top_line ...
分类:
其他好文 时间:
2020-06-09 22:10:03
阅读次数:
85
1、安装VScode,在ubuntu software里去搜就行了 2、安装VScode插件 3、随便新建一个文件夹,然后 vi hello.cpp,把下面代码粘贴到上面。 #include <iostream> #include <string> using namespace std; int ...
分类:
编程语言 时间:
2020-06-09 20:39:34
阅读次数:
109
#include<bits/stdc++.h>#define ll long long#define speed_up ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);using namespace std;/*俄罗斯方块游戏题意:有n个数,从左 ...
分类:
其他好文 时间:
2020-06-09 20:18:52
阅读次数:
45
1、场景里新建四个东西新建Empty:Hierarchy面板下右击->Create Empty2、Empty的位置是在diren的炮口处3、制作子弹的预制体4、diren挂上此代码 using System.Collections; using System.Collections.Generic; ...
分类:
移动开发 时间:
2020-06-09 20:15:43
阅读次数:
113
ManualResetEvent是C#中一个比较常用的工具,可用于线程间通信,实现一种类似信号量的功能。 这里的信号量与Java中的信号量Semaphore不同。 Java中的信号量Semaphore,是控制有限资源的并发访问。 这里的ManualResetEvent,更像是一种线程挡板。 先了解一 ...
1021 个位数统计 (15分) #include<iostream> #include<string> #include<cstdio> using namespace std; int main(){ string s;cin>>s; int a[1005]={0}; for(int i=0;i ...
分类:
其他好文 时间:
2020-06-09 18:43:19
阅读次数:
54