@for ever 2010-10-25 環境: MAC OS 10.6.4 老的iPhone 項目,使用最新的 XCode 3.2進行編譯,報錯:iPhone: There is no SDK with the name or path iphoneos XXX 解決辦法: 在XCode的工具條裡面選擇 Project- Edit Project Setting - 在 General 裡面 Project Format 選擇 XCode 3.2,在Build裡面 Base SDK選擇
package algorithm.apps;import utils.com.Swapper;/** * 在數組中找第k小元素 * * @author Toy * */public class Select_K_01 {public int partition(int[] a, int left, int right) {int ck = a[left];int i = left + 1;int j = right;while (true) {while (a[i] < ck)
package algorithm.apps;/** * 最長單調遞增子序列的求法 LIS * * @author Toy */public class LIS {/** * 動態規劃(n^2),記表備查 b[0,n-1]記錄以a[i]結尾的最長遞增子序列長度 * * @param a * @return */public int lis_01(int[] a) {int n = a.length;if (n <= 0) {return 0;}int max = 0;int[] b =
package structure.stack_queue;import java.util.Stack;/** * 定義棧的資料結構,要求添加一個min函數,能夠得到棧的最小元素。要求函數min、push以及pop的時間複雜度都是O(1)。 * * @author Toy * */public class Stack_Min {Stack<Integer> s = new Stack<Integer>();Stack<Integer> mins =
基本TCP客戶-伺服器程式的套介面函數如:1、socket函數原型:#include<sys/socket.h>int socket(int family, int type, int protocol); 傳回值:非負描述符--成功, -1--出錯;作用:指定期望的通訊協定介面(TCP或UDP或unix域位元組協議等)family
@for&ever 2010-10-25 環境:MAC OS 10.6.4XCode 3.2 SDK 4.1 編譯iPhone程式時,報出如下的錯誤:CodeSign error: Code Signing Identity ‘iPhone Developer’ does not match any code-signing certificate in your keychain. 如何解決呢?很簡單。在這個出錯的顯示視窗的左上部,將那個下拉選框裡面的 Device 選項變成