原创 編程第六十七、六十八天
c++ list頭文件(2) #include <iostream> #include <list> using namespace std; typedef list<int> INTLIST; //從前向後顯示list隊列的全
原创 編程第七十六、七十七天
JOptionPane.showOptionDialog的使用方法 public class Login extends JFrame { //定義組件 JPanel jp1,jp2,jp3;//面板
原创 編程第八十一天
java Vector的使用方法 public class VectorDemo { public static void main(String[] args) { Vector v = new Vector
原创 編程第六十九天
c++ STL標準函數find進行vector 、list鏈表查找 #include <vector> #include <algorithm> #include <iostream> class example { public
原创 編程第七十九、八十天
List集合特有的迭代器:ListIterator使用方法 public class ListIteratorDemo { public static void main(String[] args) { A
原创 編程第五十七天
c++ numeric頭文件中數值算法 #include <iostream> #include <numeric> //數值算法 #include <vector> #include <functional>
原创 編程第五十六天
c++ algorithm頭文件巡防算法 #include <iostream> #include <algorithm> #include <vector> using namespace std; templ
原创 編程第七十二、七十三天
c++ functional頭文件 std::用法 1 #include <iostream> 2 #include <functional> 3 using namespace std; 4 5 //函數包裝器 6 //
原创 編程第五十五天
c++ algorithm頭文件中find算法 #include <iostream> #include <algorithm> using namespace std; void printElem(int&
原创 編程第七十天
c++ functional頭文件 auto用法 1 #include <iostream> 2 #include <functional> 3 using namespace std; 4 5 //仿函數,創建一個函數指針
原创 編程第六十、六十一天
c++ copy()對不同容器複製;關於輸出區間與輸入區間重疊的討論 #include <iostream> #include <algorithm> #include <deque> using namespace
原创 編程第七十四天
java 監聽器 區分鼠標左右鍵 public void contentPane_mouseClicked(MouseEvent e) { this.add(jPopupMenu1); int mods =
原创 編程第五十八、五十九天
c++ algorithm頭文件 基本算法 #include <iostream> #include <algorithm> #include <vector> using namespace std; t
原创 編程第六十五、六十六天
c++ list頭文件(1) #include <iostream> #include <list> #include <numeric> #include <algorithm> using namespace std; //創
原创 編程第七十八天
Swing 選擇欄彈出的使用 import javax.swing.*; public class MyJOptionPane {public static void main(String args[]) {Object[] obj2