原创 鏈式棧簡單模板代碼

#include<iostream> #include<stdlib h=""> using namespace std; template <class t=""> class LinkStack; template <class t

原创 南郵匯編實驗二(用戶登錄)

.486 DATA SEGMENT USE16 MESG1 DB 'INPUT USER:$' MESG2 DB 'INPUT PWD:$' USER DB 20 DB ? DB 20 DUP(?) PWD

原创 c++實現字符串迴文判斷

#include <iostream> using namespace std; int fun(int low, int high, char *str, int length){ if(length==0||len

原创 C語言關於union

#include<stdio.h> union Student{ int i; unsigned char ch[9]; }; int main (){ Student student; student.i=0x1632; p

原创 Android反編譯工具Android Killer

轉載於:http://www.cnblogs.com/common1140/p/5198460.html 今天百度搜索“Android反編譯”搜索出來的結果大多數都是比較傳統的教程。剛接觸反編譯的時候,我也是從這些教程慢慢學起的。在後

原创 Android 實現百度地圖API調用

第一步,需要申請百度地圖API key。申請地址 第二步,下載百度地圖的相關開發文件,在eclipse下,將.jar文件導入到libs下,將.so拷貝到libs\armeabi目錄下。不同的eclipse版本可能還需要一下步驟: 在Ecl

原创 LeetCode[1] Two Sum (java實現)

Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assum

原创 Ubuntu下利用ssh實現遠程登錄

第一步,由於ubuntu系統默認不帶openssh server,所以先要安裝,使用命令  $ sudo apt-get install openssh-server 系統會自行進行下載和安裝。 第二步,檢查openssh-server服

原创 c++實現特殊數字矩陣

#include<iostream> #include<iomanip> using namespace std; void main(){ int i,j,a[100][100],n,k; cout<<"input the widt

原创 南郵數據結構、算法實踐周基礎題3(哈夫曼樹及其編碼)

是在一位學長的代碼上改的,學長勿怪~.~ #include <iostream> #include <string> #include <cstring> using namespace std; template<class T> cl

原创 c++實現2的n次方

#include<iostream> using namespace std; #define MAXNUM 2000 int arr[MAXNUM]; int main(){ int n,index,i; cin>>n; inde

原创 南郵離散數學實驗二

#include<iostream.h> #include<stdio.h> #include<stdlib.h> #include<conio.h> #include<string.h> #define M 100 char *get

原创 遞歸法求三角形數(1,3,6,10,15...)

#include<iostream> using namespace std; int Fun(unsigned int n){ if(n==1) return 1; else return Fun(n-1)+n; } int

原创 南郵匯編實驗一

從BUF單元開始存有一字符串(長度<255),編程實現統計該字符串中的ASCII在42H~45H之間的字符個數,並將統計結果以二進制形式顯示在屏幕。.486 DATA SEGMENT USE16 BUF DB 'ABCDEFGHIJKLM

原创 南郵java實驗一—綜合圖形界面程序設計

import java.awt.event.*; import javax.swing.*; import java.math.BigDecimal; @SuppressWarnings("serial") public class T