原创 xcode 下安裝 cocos2d-x ,模板不顯示問題完美解決方案

首先直接安裝, sudo ./install-templates-xcode.sh,  安裝後,如果沒顯示模板,接着下一步 ls -l "/Users/[USERNAME]/Library/Developer/Xcode/Template

原创 線程同步 pthread_mutex_t pthread_cond_t sem_t

pthread_cond_t #include <stdio.h> #include <stdlib.h> #include <pthread.h> struct msg { struct msg *next; int num;

原创 xcode object-c 筆記

/* 1. IBOutlet interface builder 爲了使用 interface builder 識別 */ @property (nonatimic, retain) IBOutlet UIImageView *im

原创 linux C++ 資料集合

GCC    中文手冊         http://www.nbfan.com/forum/dispbbs....&ID=1433&page=1 

原创 linux 下 automake 生成 makefile

1. autoscan 產生 autoscan.log configure.scan 2. mv configure.scan configure.in 3. vim configure.in 原始 #

原创 信號模擬 sleep 函數,定時器

#include <unistd.h> #include <signal.h> #include <stdio.h> void sig_alrm(int signo) { printf("this is the alarm funct

原创 STL中map的數據結構

1.map定義 map是鍵-值對的集合。map類型通常可以理解爲關聯數組:可使用鍵作爲下標來獲取一個值,正如內置數組類型一樣。而關聯的本質在於元素的值與某個特定的鍵相關聯,而並非通過元素在數組中的位置來獲取。 <1>map模板原型: t

原创 dijkstra 算法

#include <stdio.h> #include <stdlib.h> #include <pthread.h> #define NUM 5 pthread_mutex_t lock[NUM] = {PTHREAD_MUTEX

原创 2-bitmap 算法,可解決海量數據問題,減少內存使用

#include "stdafx.h" #include <iostream> #include <memory.h> using namespace std; unsigned char flags[1000]; unsigned

原创 OCCI

轉貼_vc++ 編譯 occi 接口的 環境設置 VC編譯OCCI的解決方案 解決過程中,發現少有的解決方案也是零星和不詳細的。 我把總結的成果共享一下吧,希望能對後來者有所幫助。   Windows下編譯yield的步驟: 一、 安裝必

原创 STL sort 排序

詳細解說 STL 排序(Sort) 詳細解說 STL 排序(Sort) 作者Winter 詳細解說 STL 排序(Sort) 0 前言: STL,爲什麼你必須掌握 1 STL提供的Sort 算法 1.1 所有sort算法介紹 1

原创 存儲過程和存儲函數的區別

1 存儲過程 定義: 存儲過程(Stored Procedure )是一組爲了完成特定功能的SQL 語句集,經編譯後存儲在數據庫中。用戶通過指定

原创 進程通信pipe, 輸入輸出,進程間互相讀寫

#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <errno.h> #define MAXLINE 80

原创 cocos2d-x 開發中使用的一些工具

猴子原創,歡迎轉載。轉載請註明: 轉載自Cocos2D開發網--Cocos2Dev.com,謝謝! 原文地址: http://www.cocos2dev.com/?p=270 這些工具平常也用到,不過沒有像這樣整理出來,這是我在網上看

原创 linux 命令大全

系統信息 arch 顯示機器的處理器架構(1) uname -m 顯示機器的處理器架構(2) uname -r 顯示正在使用的內核版本 dmi