原创 mysql Client does not support authentication protocol requested by server; consider upgrading MySQL

1 先在cmd下,用下面的命令登錄MySQL mysql -u root -p 2 在進行下面的修改操作(二者選其一運行就好) ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_pa

原创 STL——bitset容器

#include<bitset> #include<iostream> using namespace std; int main() { /*設置元素值*/ bitset<10> b; //採用下標法給元素賦值 b[1]=1;

原创 STL——list容器

#include<list> #include<iostream> #include<algorithm> using namespace std; int main() { list<int> l; //鏈表尾部插入新元素,鏈表自

原创 STL——map容器

#include<map> #include<string> #include<iostream> #include<string> using namespace std; struct myComp{ bool operator(

原创 STL——deque容器

#include<deque> #include<iostream> using namespace std; int main(){ /*使用push_back()方法從尾部插入元素,會不斷擴張隊列*/ //定義deque對象,元

原创 STL——multimap容器

/*multimap允許插入重複的鍵值的元素*/ #include<map> #include<string> #include<iostream> using namespace std; int main() { multimap

原创 STL——set容器

#include<iostream> #include<set> #include<string> using namespace std; struct myComp{ bool operator()(const int &a,co

原创 設計模式——簡單工廠

創建一個公共接口 public interface Sender { public void Send(); }      2. 創建實現接口的實體類 public class MailSender implements Sende

原创 STL——string容器

#include<iostream> #include<string> #include<algorithm> #include<vector> #include<sstream> using namespace std; /*將數值轉

原创 設計模式——工廠模式

1. 創建一個公共接口 public interface Sender { public void send(); } 2. 創建重寫該接口方法的實體類 public class MailSender implements S

原创 STL——vector容器

#include<vector> #include<iostream> #include<algorithm> using namespace std; //自己設計排序比較函數,對元素的值進行降序排序 bool Comp(const

原创 STL——multiset容器

#include<set> #include<string> #include<iostream> using namespace std; int main() { /*可以插入重複元素*/ multiset<string> m

原创 如何解決svn對應版本漢化語言安裝後,在設置裏面無法顯示中文選項

找到自己安裝TortoiseSVN目錄下的Language文件夾,將其刪除; 下載、安裝與已經安裝好的TortoiseSVN版本一致的漢化包

原创 Struts2學習筆記

1. 定義   Struts是流行和成熟的基於MVC設計模式的Web應用程序框架 2. 使用Struts的目的   爲了幫助我們減少在運用MVC設計模型來開發Web應用的時間。 3. MVC模式   JSP+Servlet+JavaBea

原创 數據結構——數組模仿循環隊列

#include<stdio.h> #include<stdlib.h> #define MAXN 5 int queue[MAXN]; int Front=0; int Rear=0; /*輸入value值入隊列*/ void addq