码迷,mamicode.com
首页 >  
搜索关键字:using password: yes    ( 53562个结果
datagridview查询输入值
using system.data.sqlusing system.data.sqlclientdataset ds= new dataset();string connectionString=连接字符串string commandString=查询语句(如"select * from 表 whe ...
分类:Windows程序   时间:2020-06-10 13:26:46    阅读次数:81
C# Windows Service 用代码实现安装、运行和卸载服务的方法
网上很多创建Widows Service 的方法,其安装和运行服务的方式大多是通过cmd 命令来实现的,这里将通过控制台的形式实现安装、运行和卸载服务。 主页代码: 1 using KQService.Job; 2 using KQService.Utils; 3 using System; 4 u ...
分类:Windows程序   时间:2020-06-10 13:14:11    阅读次数:95
18U3D Socket实现简易通讯
Step1:创建工具类 NetWorkManger 实现服务器和客户端的连接和消息的发送 创建该类需要导入命名空间: using System; using System.Net; using System.Net.Sockets; using System.Text; 将工具类设置为单例类: pu ...
分类:其他好文   时间:2020-06-10 11:26:48    阅读次数:61
WINFORM权限系统开发系列教程(六)主窗口
主窗口效果 主窗口代码 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; u ...
分类:Windows程序   时间:2020-06-10 11:07:50    阅读次数:79
原本的变量名处在变量值的位置,如何重新提取变量名
源地址:首行数据 如何快速转为 变量名 ? 在日常工作中,我们导入的数据常常不那么规范,如下图所示,原本的变量名处在变量值的位置,若要重新提取变量名,单个变量依次重命名显然繁琐,那么我们有什么快捷的方法呢? convert_top_lines ssc install convert_top_line ...
分类:其他好文   时间:2020-06-09 22:10:03    阅读次数:85
ubuntu + vscode C++ 新建项目、开发、编译、调试
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
6.9 VJ F - Yet Another Tetris Problem
#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
unity|敌方坦克自由移动,当靠近到一定距离后,可自动攻击
1、场景里新建四个东西新建Empty:Hierarchy面板下右击->Create Empty2、Empty的位置是在diren的炮口处3、制作子弹的预制体4、diren挂上此代码 using System.Collections; using System.Collections.Generic; ...
分类:移动开发   时间:2020-06-09 20:15:43    阅读次数:113
C#——ManualResetEvent的理解和用法
ManualResetEvent是C#中一个比较常用的工具,可用于线程间通信,实现一种类似信号量的功能。 这里的信号量与Java中的信号量Semaphore不同。 Java中的信号量Semaphore,是控制有限资源的并发访问。 这里的ManualResetEvent,更像是一种线程挡板。 先了解一 ...
分类:Windows程序   时间:2020-06-09 18:59:38    阅读次数:94
PAT字符串处理题---1021 个位数统计 (15分)
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!