调试程序的时候,出现异常消息“The underlying provider failed on Open”;详细信息:和{"服务器 '' 上的 MSDTC 不可用。"};网上溜达了一下下,很快解决了;解决方案:来自heooMSDTC(分布式交易协调器),协调跨多个数据库、消息队列、文件系统等资源管...
分类:
其他好文 时间:
2014-06-19 08:53:05
阅读次数:
217
sql语句查询后几行数据并倒着排列$conn = mysql_connect("数据库地址","用户名","密码");if(!$conn){die("mysql conn failed");}else{ mysql_query("SET NAMES 'utf8'"); mysql_sel...
分类:
数据库 时间:
2014-06-19 00:37:22
阅读次数:
345
安装Android SDK时遇到Failed to rename directory E:\Java\Android SDK\android-sdk_r06-windows\android-sdk-windows\tools to E:\Java\Android SDK\android-sdk_r0...
分类:
移动开发 时间:
2014-06-19 00:09:31
阅读次数:
353
报错信息:password authentication failed Permission denied, please try again1 开启ubuntu上的ssh功能先安装,安装后就自动开启了.sudo apt-get install openssh-server openssh-clie...
分类:
其他好文 时间:
2014-06-15 14:05:28
阅读次数:
277
#include #include #include #include void cleanup(){ printf("cleanup\n");}void *test_cancel(void){ pthread_cleanup_push(cleanup,NULL); printf(...
分类:
编程语言 时间:
2014-06-15 13:13:00
阅读次数:
225
Callback 与 ButtonDownFcn是MATLAB GUI 设计中容易混淆的两个回调函数,在触控按钮(Push Button)、静态文本(Static Text)、切换按钮(Toggle Button)、滑动条(Slider)等控件中均有这两个函数(也叫“属性”)。下面仅以 Pus...
分类:
其他好文 时间:
2014-06-14 19:54:26
阅读次数:
373
坦克大战
时间限制:1000 ms | 内存限制:65535 KB
难度:3
描述
Many of us had played the game "Battle city" in our childhood, and some people (like me) even often play it on computer now.
What we are dis...
分类:
其他好文 时间:
2014-06-14 14:30:01
阅读次数:
274
Follow up for "Unique Paths":
Now consider if some obstacles are added to the grids. How many unique paths would there be?
An obstacle and empty space is marked as 1 and 0 respectively
in the...
分类:
其他好文 时间:
2014-06-14 12:02:12
阅读次数:
229
void dfs(int k,int target,vector& candidates,vector& sol,vector >& res){ if(target==0){ vector temp(sol); res.push_back(temp); return; }else if(tar...
分类:
其他好文 时间:
2014-06-14 10:31:07
阅读次数:
196
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:
其他好文 时间:
2014-06-14 08:52:31
阅读次数:
265