[c++]通過一個簡單的程序引出#define與typedef的區別
廢話不多說,請看下面程序: #include using namespace std; #define SIGN1 char* // typ
poj 3307 Smart Sister 打表解因子生成數問題
題意: 給i,求由僅以2,3,5,7為因子的數中第i個是多少。 分析: 打表。 代碼: //poj 3307 //sep9 #include
HDU 1016 Prime Ring Problem(深搜)
Prime Ring ProblemTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/327
[LeetCode] Majority Element II
Given an integer array of size n, find all elements that appear more than &lfloo
poj 2683 Ohgas' Fortune 利率計算
水題。代碼: //poj 2683//sep9#include using namespace std;int main(){ int cases;
zoj3623 Battle Ships
Battle Ships is a new game which is similar to Star Craft. In this game, the ene
DOM元素尺寸offsetWidth,scrollWidth,clientWidth等詳解
例子: <script> var div=document.getElementById(div); var ho=div.o
LeetCode139:Word Break
Given a string s and a dictionary of words dict, determine if s can be segmented
LeetCode_Merge Two Sorted Lists
一.題目Merge Two Sorted ListsTotal Accepted: 63974 Total Submissions: 196044My Subm
LeetCode_Sum Root to Leaf Numbers
一.題目Sum Root to Leaf NumbersTotal Accepted: 47437 Total Submissions: 156443My Su
VC修改窗口屬性 GetWindowLong(), SetWindowLong()
修改窗口屬性說明:以下函數對於POPUP窗口有效,對於子窗口好像不行。//最小化按鈕有效::SetWindowLong(m_hWnd,GWL_STYLE,Get