• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
wjshan0808

Learn from yesterday, Live for today, For a better tomorrow.
 ————wjshan0808

博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2 3 4 5 6 7 8 ··· 20 下一页
2016年1月23日
C++实现黄金分割数列(斐波纳奇数列)(非递归)
摘要: 斐波纳奇数列: 定义为F0=0,F1=1,......Fn=F(n-1)+F(n-2) 1,1,2,3,5,8,13,21,34,55.......void FibonacciOdd(int n){ int prev_1 = 0, prev_2 = 0, item = 0; for... 阅读全文
posted @ 2016-01-23 17:31 wjshan0808 阅读(890) 评论(0) 推荐(0)
vbs让电脑发音说话
摘要: Dim vbs1 'set vbs1 = WScript.CreateObject("WScript.Shell") set vbs1 = WScript.CreateObject("SAPI.SpVoice") '语言的改变 在 Win+R中 输入 sapi.cpl 那里有 如 Microsoft... 阅读全文
posted @ 2016-01-23 11:49 wjshan0808 阅读(5105) 评论(0) 推荐(0)
修改远程桌面端口号.bat
摘要: @color 0A@title 修改远程桌面端口号 by wjshan0808@echo offecho 请输入端口号set /p port=reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tc... 阅读全文
posted @ 2016-01-23 11:46 wjshan0808 阅读(1418) 评论(0) 推荐(0)
2016年1月17日
C#实现鸽巢排序
摘要: /// /// 鸽巢排序 /// 创建一个长度大于等于待排序数组array元素中最大值的标记数组mark, /// 将数组array中元素值个数映射到mark数组中。 /// 即array数组中的元素值对应ma... 阅读全文
posted @ 2016-01-17 13:13 wjshan0808 阅读(384) 评论(0) 推荐(0)
2016年1月9日
C++用递归方式实现在对不更改随机数组的情况下查找最大值
摘要: #include #include #include using namespace std; int Max(int arr[], int n);void main(int argc, char* argv[]){ srand(time(NULL));//随机种子 int a... 阅读全文
posted @ 2016-01-09 16:54 wjshan0808 阅读(349) 评论(0) 推荐(0)
2015年11月7日
C# 实现 微软WebRequestMethods.Ftp类中的FTP操作功能
摘要: 先奉献一个测试地址,ftp内的文件请勿删除,谢谢FtpEntity fe = new FtpEntity("wjshan0808.3vhost.net", "wjshan0808", "1234567890");由于代码量较多,只抽出一部分,详细代码请移步 ftp://wjshan0808.3vho... 阅读全文
posted @ 2015-11-07 16:44 wjshan0808 阅读(1215) 评论(0) 推荐(0)
2015年9月15日
C# “快捷方式” 实现程序开机启动
摘要: 添加引用:COM : Windows Script Host Object ModelName: Interop.IWshRuntimeLibrary添加命名空间:using IWshRuntimeLibrary; public static int StartUpByShortCut... 阅读全文
posted @ 2015-09-15 00:19 wjshan0808 阅读(708) 评论(0) 推荐(0)
2015年9月5日
C++ DateTime 结构
摘要: OS:Win7 ,Tools:VS2015DateTime.h#pragma oncestruct DateTime{public: unsigned Year; // years since 1900 unsigned short Month; // months s... 阅读全文
posted @ 2015-09-05 17:22 wjshan0808 阅读(1118) 评论(0) 推荐(0)
2015年8月10日
C# UDP 连接通信 简单示例
摘要: Udp.csusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net;using System.Net.Sockets;namespace udp{ pu... 阅读全文
posted @ 2015-08-10 17:56 wjshan0808 阅读(2179) 评论(0) 推荐(0)
2015年8月6日
C# 对象的序列化与反序列化 (DataContractJsonSerializer)
摘要: 项目引用System.Runtime.Serialization.dll添加命名空间using System.Runtime.Serialization.Json;1.序列化对象,得到Json字符串 public static string WriteFromObject(T obj)... 阅读全文
posted @ 2015-08-06 17:53 wjshan0808 阅读(2365) 评论(0) 推荐(0)
2015年7月15日
C# App.config文件配置数据的读写
摘要: 添加程序集引用 System.configuration.dll 和命名空间 using System.Configuration;读:ConfigurationManager.AppSettings["节点名称"]写:Configuration config = ConfigurationMana... 阅读全文
posted @ 2015-07-15 15:24 wjshan0808 阅读(242) 评论(0) 推荐(0)
2015年7月14日
在SQLite Expert上用日期类型字段作为条件查询时注意日期的格式化
摘要: 经验之谈:情况一:没有查询结果select * from t_Records where 1==1 and R_CheckInTime > '2015-7-12 18:47:00' and R_CheckInTime '2015-07-12 18:47:00' and R_CheckInTim... 阅读全文
posted @ 2015-07-14 11:15 wjshan0808 阅读(765) 评论(0) 推荐(0)
SQLite Expert 删除表数据并重置自动增长列
摘要: 用下面的语句肯定是行不通的,语句不支持truncate table t_Records方法:1.删除表数据delete from t_Records where 1==12.重置自动增长列update sqlite_sequence set seq=0 where name='t_Records' ... 阅读全文
posted @ 2015-07-14 11:08 wjshan0808 阅读(662) 评论(0) 推荐(0)
2015年5月15日
Linux 下修改配置实现在当前目录下寻找可执行文件
摘要: # vim .bash_profile添加export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.# vreboot 阅读全文
posted @ 2015-05-15 16:46 wjshan0808 阅读(260) 评论(0) 推荐(0)
2015年4月27日
C# TreeView的CheckBox 父/子节点点击联动选择效果
摘要: 注: 点击时请正常速度点击,不然会出现“奇怪”现象!!! /// /// 节点点击 子级->同级->父级 /// /// /// private void tvRoles_AfterCheck(objec... 阅读全文
posted @ 2015-04-27 09:59 wjshan0808 阅读(1351) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 20 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3