原创 在Eclipse下搭建Android開發環境

                                                         在Eclipse下搭建Android開發環境       不廢話。。。直接開始搭建Android開發環境。。。現在網上

原创 SDUT OJ 數據結構實驗之棧:行編輯器

#include<iostream> #include<stdio.h> using namespace std; int main() { int lenstr,i,top; char str[255],a[255]; whil

原创 SDUT OJ 2144 最小生成樹

#include<iostream> #include<memory.h> #define MAX 0x3f3f3f3f #define N 110 using namespace std; int low[N],map[N][N],vi

原创 SDUT OJ 查找練習 2123 hash——出現過的數字

#include<iostream> using namespace std; int a[100000]={0}; int main() { int m,n,i,b,c; cin>>n>>m; for(i=0;

原创 SDUT OJ 2449 走迷宮

#include<iostream> using namespace std; int visit[10][10],a[10][10]; int n,m; int k; void dfs(int x,int y) { if(x<0||x

原创 SDUT OJ 1466 雙向隊列

/*這題原本想用鏈式隊列解決,但是鏈式隊列從頭部刪除很方便 但是從尾部刪除的話,就很難找到前驅,最後放棄,最後學了一下 雙向隊列,特別好用,在這裏試了一下。。*/ #include<iostream> #include<string> #

原创 SDUT OJ 走迷宮

#include<iostream> using namespace std; int visit[10][10],a[10][10]; int n,m; int k; void dfs(int x,int y) { if(x<0||

原创 轉載——大牛青春起點...

switch()適用byte、short、int、char,string 如果case 中不加break,會一直執行,知道},或break,結束 如: [html] view plaincopy public class 

原创 SDUT OJ 數據結構實驗之隊列一:排隊買飯

#include<iostream> #include<memory.h> #include<string> #define N 10010 using namespace std; int main() { int m,i,a[N]

原创 SDUT OJ 數據結構實驗之棧二:一般算術表達式轉換成後綴式

#include<iostream> using namespace std; int youxian(char s) { if(s=='+'||s=='-') return 1; else if(s=='*'||s=='/') r

原创 SDUT OJ 數據結構實驗之棧四:括號匹配

#include<iostream> #include<stdio.h> using namespace std; int main() { char a[51],b[51]; int i,top; while(gets(a)!=N

原创 SDUT OJ refresh的停車場

#include<iostream> #include<string> using namespace std; string a[20010],b[20010]; int main() { int n,m,i,flag; stri

原创 轉載——大牛青春起點...Java第二課學習..

位運算符: (1)>> (a >>b)相當於a / (2的b次冪)注意取整,右移後,原來高位是什麼,就用什麼來補充空下的高位 (2)<< (a << b) 相當於 a * (2的b次冪): (3)>>> 3>>>1 = 1 ;->

原创 SDUT OJ 2413 數據結構實驗圖論一:基於鄰接矩陣的廣度優先搜索遍歷

    #include<iostream> #include<memory.h> using namespace std; int p[1010][1010]; int visit[110]; int c[1010]; int a=0

原创 SDUT OJ 2138 圖結構練習——BFSDFS——判斷可達性

#include<iostream> #include<memory.h> using namespace std; int visit[1001]; int t[1001][1001]; int k; int n; void dfs(i