原创 STL容器的實現原理

1.STL共有六大組件  1、容器。  2、算法。  3、迭代器。  4、仿函數。  6、適配器。 2.STL容器的實現原理 STL來管理數據十分方便,省去了我們自己構建數據結構的時間.其實,STL的實現也是基於我們常見的數據結構.

原创 hdu 1051 Wooden Sticks(貪心)

Wooden Sticks Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s):

原创 Johnson_Trotter 生成排列算法

const int N = 10; int f[N],d[N]; void init(int n) { for(int i=1; i<=n; i++) f[i]=i,d[i]=-1; } void Print(

原创 hdu 1081 To The Max(最大子矩陣)

To The Max Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 10

原创 MySQL的啓動方法(windows 平臺)

啓動mysql,有如下方法: 最簡單的方法:方法一: 啓動服務安裝後在windows的服務選項中,選中mysql的服務,然後雙擊啓動即可。。。。具體操作(右擊我的電腦->管理->彈出計算機管理,選服務和應用程序->服務->MYSQL4->

原创 LightOJ - 1188 Fast Queries(離線樹狀數組)

                                                                                                   Fast Queries Given a

原创 Java 實現棧(Stack)

/* * 題目:棧的實現 */ import java.io.*; public class Stack { public static class stack<T> { private static class Node<

原创 codeblocks主題修改(vim)

codeblocks的配置文件是default.conf,在Windows系統下,該文件在C:\Documents and Settings\Administrator\Application Data\CodeBlocks;在Linu

原创 UVALive 6434 Number Assignment(dp)

題目鏈接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=47581 #include <bits/stdc++.h> using namespace std; t