Wesley13 Wesley13
3年前
C++经典机试题目
1\.表达式求值中缀转后缀include<iostreaminclude<stackusingnamespacestd;intPriority(charoper){switch(oper){case'(':return
Stella981 Stella981
3年前
C#创建cookie读写cookie
一、创建cookie    HttpCookiecookienewHttpCookie("UserInfo");//创建多值cookie             cookie.ExpiresDateTime.Now.AddDays(1);//设置cookie的失效时间为一天,如果不设置失效时间,cookie会在浏览器关闭即消失,不
Wesley13 Wesley13
3年前
C# 修改配置文件
///<summary///保存配置文件的设定///</summary///<paramname"Key"</param///<paramname"Value"</parampublicstaticvoidSaveAppConfig(stringKey,stringValue){
Wesley13 Wesley13
3年前
C#内存泄漏的事例
C内存泄漏的事例一,使用非托管资源忘记及时Dispose(1) 使用完非托管资源一定要Dispose或者使用usingusing(FileStreamfsWritenewFileStream(path,FileMode.OpenOrCreate,FileAccess.Write))
Stella981 Stella981
3年前
C# 获取当前屏幕DPI
原文:C获取当前屏幕DPI(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.cnblogs.com%2Fkybs0%2Fp%2F7429282.html)1.通过Graphics类获取GraphicscurrentGraphicsGraphics.F
Wesley13 Wesley13
3年前
C# 设置鼠标光标位置
C设置鼠标光标位置usingSystem.Drawing;usingSystem.Runtime.InteropServices;namespaceZB.QueueSys.Common{publicclassMouseHelper{
Stella981 Stella981
3年前
C# CsRedis的初探(二)
Redis常用命令基本篇keys命令     ?  匹配一个字符 KEYSh?llo匹配hello, hallo和hxllo等。    \  匹配任意个(包括0个)字符KEYSh\llo匹配hllo和heeeeello等。
Wesley13 Wesley13
3年前
C++错误收集(2)
ERRORNO.2内置函数inline。类体中定义的函数功能一般规模较小,系统调用类为定义的函数的过程需要的时间开销是比较大的,为了减少系统调用函数的时间开销,如果在类体智能光定义的函数不包括循环等控制结构,C会自动将它们作为内置函数。内置函数的作用是将函数实现的代码替代声明的地方,以减小系统调用类外函数的时间开销。今天使用是遇到了问题
Wesley13 Wesley13
3年前
C++ 顺序表 代码实现
线性表存储在计算机中可以采用多种方式,以下是按照顺序存储方式实现:优点:查找很方便缺点:插入元素、删除元素比较麻烦,时间复杂度O(n)1ifndefSeqList_h2defineSeqList_h3include<iostream4usingnamespacestd;
Stella981 Stella981
3年前
C#连接操作mysql实例
\转\C连接操作mysql实例(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.cnblogs.com%2Ffreeliver54%2Farchive%2F2012%2F11%2F20%2F2778637.html)本文转自:http://hi.baidu.com/zh