原创 將鏈表類做成工具類
1.先做頭文件List.h ,注意預編譯處理 #ifndef LIST__H__ #define LIST__H__ #include <iostream> #include <stdexcept> using namespace
原创 鏈表類
#include <iostream> #include <stdexcept> using namespace std; typedef int T; class List { private: struct Node {
原创 繼承List類實現棧
#include <iostream> #include "List.h" using namespace std; typedef int T; class Stack : public List //應該私有繼承 { public:
原创 UNIX 下C編程 代碼02
int max(int a[], int n) { int m = a[0]; for(int i=1; i<n; i++) if(m<a[i]) m = a[i]; return m; } double v=1234.5
原创 UNIX 下C編程 代碼01
//1string.c #include <string.h> #include <ctype.h> char* format(char* str) {//isupper,islower,isdigit,isspace,isblink,i
原创 中綴表達式轉後綴表達式
#include <iostream> #include <cctype> using namespace std; const int LEN = 50; typedef char T; class Stack { private:
原创 鏈表類,親自測試使用成員方法
#include <iostream> #include <stdexcept> using namespace std; typedef int T; class List { private: struct Node { T
原创 直接以操作鏈表的方式操作節點
#include <iostream> using namespace std; typedef int T; //節點類 //struct 也稱類? struct Node { T data; Node* next; Node(
原创 簡單的數組棧
//程序編譯運行通過,基本結構寫好了。 //travel,size,expand等函數可以慢慢擴展 #include <iostream> using namespace std; typedef int T; class Stack
原创 冒泡排序、優化
#include <iostream> using namespace std; void print(int * a,int n) { for(int i = 0; i < n; i++) { cout << a[i] <<
原创 插入排序
#include <iostream> #include <algorithm> using namespace std; void print(int * a,int n) { for(int i = 0; i < n; i++)
原创 Oracle 筆記02
顯示first_name 的後三個字符 hello 12345 54321 select first_name,substr(first_name,
原创 Oracle 筆記01
oracle ----數據庫 emis DB -----FILE DBMS ----數據庫管理系統 IBM -----RDBMS ----
原创 Oracle 筆記04
尚未上傳 點贊 收藏 分享 文章舉報
原创 選擇排序
//選擇排序 #include <iostream> using namespace std; void print(int * a,int n) { for(int i = 0; i < n ; i++) { cout <<