- 博客(7)
- 收藏
- 关注
原创 sivelrlight 结合asp.net用于大文件下载
一、在web项目下添加一个“一般处理程序”using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.IO;namespace Silverlightdownload.Web{ /// /// FileDownLoader 的摘要说
2016-07-08 18:58:53
350
1
原创 LeetCode 172. Factorial Trailing Zeroes(C++)
题目:Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time complexity.解法1:: 分析:对n!做质因数分解n!=2x*3y*5z*...显然0的个数等于min(
2016-06-03 18:57:28
356
1
原创 LeetCode OJ: 9. Palindrome Number (C++)
题目:Determine whether an integer is a palindrome. Do this without extra space.解法1、需要额外空间: 存储各位数字,逆转,换回逆转值,与原值比较class Solution {public: int reverse(int x) { long long sum=0; lo
2016-06-03 17:07:09
486
1
原创 leetcode : Counting Bits
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and return them as an array.Example:For num = 5
2016-05-10 20:44:02
464
1
原创 visual studio 2010 添加数据库连接 测试连接通过 报错:关键字不在数据字典中
一、现象visual studio 2010 添加数据库连接 时, 测试连接能通过,但是却报错:关键字不在数据字典中;二、可能原因做多个项目时,手动安装数据库provider,并使用该provider加入数据连接,而在移除provider后,该数据连接仍在数据连接的列表上,此时,则无法再加入数据连接,并出现此错误。三、解决办法当这种情况发生时有两种解决方式:1.重新安装provider,再移除vs
2015-09-18 11:08:18
4242
1
原创 Silverlight DataGrid用法
Silverlight DataGrid用法一、数据绑定1、整个datagrid绑定数据源PagedCollectionView drugListview = new PagedCollectionView(mClient.Students); //一定要用PagedCollectionView DataGridbyPager.ItemsSource = null; DataGridb
2015-07-26 17:03:44
466
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人