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
#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
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
Initialization and Class loading
分类:
编程语言 时间:
2014-06-02 00:48:48
阅读次数:
291
importjava.util.Scanner;
publicclassA03{
/**
*@paramargs
*/
publicstaticvoidmain(String[]args){
//TODOAuto-generatedmethodstub
Scannerinput=newScanner(System.in);
System.out.println("****************************************");
System.out.print..
分类:
编程语言 时间:
2014-06-01 16:42:08
阅读次数:
335
publicclassA01{
/**
*@paramargs
*/
publicstaticvoidmain(String[]args){
//TODOAuto-generatedmethodstub
intsum=0;
intnum=2;
while(num<=100){
sum+=num;
num+=2;
}
System.out.println(sum);
}
}
分类:
编程语言 时间:
2014-06-01 16:35:36
阅读次数:
552
自定义了CSS的样式,希望在页面中起作用。因为MVC中Views/Shared/_Layout.cshtml是所有试图的公共文件,如下:
@ViewBag.Title @RenderBody()通过这句话使用了一个外部层叠样式表文件,位置在"~/Content/Site....
分类:
Web程序 时间:
2014-06-01 12:13:36
阅读次数:
274
owner.componentLayoutCounter问题解:listeners : {
render : function(grid) {// 要在渲染完之后再load才有loading信息 grid.setLoading(fa...
分类:
Web程序 时间:
2014-06-01 11:25:06
阅读次数:
287