An iterative way of writing quick sort:
#include
#include
#include
using namespace std;
void quickSort(int A[], int n) {
stack> stk;
stk.push(make_pair(0, n-1));
while (!stk.empty()) {
pair ...
分类:
其他好文 时间:
2014-06-03 00:16:43
阅读次数:
357
git提交代码时,出现这个错误“error: The requested URL returned error: 403 Forbidden while accessing https”
解决方法:
编辑.git目录下的config文件即可。
vim .git/config
#修改对于的配置
#原来的url = https://github.com/elitecodegr...
分类:
数据库 时间:
2014-06-03 00:03:44
阅读次数:
349
阻塞IO实现:
public class PlainEchoServer {
public void serve(int port) throws IOException {
final ServerSocket socket = new ServerSocket(port);
try {
while (true) {
final Socket clientSocket...
分类:
其他好文 时间:
2014-06-02 23:32:20
阅读次数:
357
android 在log中提示TimeOut Error后,应用程序弹出application
errorthe connection to the server was unsuccessful
的错误的处理方法:第一步找到项目中res/xml目录下的config.xml,把你的外网的域名地址添加...
分类:
移动开发 时间:
2014-06-02 22:24:37
阅读次数:
361
#include#includeusing namespace std;int main(){ int
len; while(cin>>len) { int ans; len--; cin>>ans; while(len--) { int
a; cin>>a; ...
分类:
其他好文 时间:
2014-06-02 19:59:57
阅读次数:
190
VirtualBox 3.2.10 gives me the following error
message when booting Ubuntu 10.10:-iix4_smbus 0000.00.07.0: SMBus base address
uninitialized - upgrade ...
分类:
其他好文 时间:
2014-06-02 16:44:03
阅读次数:
234
ORA-09925Linux-x86_64Error:2:Nosuchfileordirectory
[javascript]viewplaincopy
DBCA***数据库所有实例后,本想用RMANduplicate方式克隆DB,因此在$ORACLE_BASE目录下创建了相关的目录admin/dupl/adump,admin/dupl/dpump
在使用sqlplus正常连接空闲实例,手贱却执行了start..
分类:
系统相关 时间:
2014-06-02 14:51:48
阅读次数:
410
importjava.util.Scanner;
publicclassA04{
publicstaticvoidmain(String[]args){
//TODOAuto-generatedmethodstub
Scannerinput=newScanner(System.in);
System.out.println("欢迎使用MyShopPing管理系统");
System.out.println("\n********************************..
分类:
编程语言 时间:
2014-06-02 14:44:48
阅读次数:
378
Caused by: java.sql.SQLException: You have an error
in your SQL syntax; check the manual that corresponds to your MySQL server
version for the right s...
分类:
数据库 时间:
2014-06-01 11:31:29
阅读次数:
371
DVR_RDK编译报错
abnormal termination of /opt/dm8168/dvr_rdk/../ti_tools/cgt_dsp/cgt6x_7_3_5//bin/cmp6x
make[2]: *** [/opt/dm8168/dvr_rdk/../dvr_rdk/build/dvr_rdk/obj/ti816x-evm/c6xdsp/debug/MAIN_APP_c6xdsp_pe674.oe674] Error 1
make[1]: *** [apps] Error 2
m...
分类:
其他好文 时间:
2014-06-01 09:37:14
阅读次数:
204