目前分類:C and C++ (177)
- Dec 26 Thu 2013 08:16
About openmp reduction
- Dec 25 Wed 2013 11:47
class 隨意寫寫--Merry Xmas!
class Mars
{
- Dec 24 Tue 2013 14:30
libevent server pools by passing fd between
- Dec 24 Tue 2013 10:22
logging in c++
- Dec 23 Mon 2013 13:35
pass file descriptor between process
- Dec 23 Mon 2013 09:19
將台股代碼使用 hash table 存取 array index
http://hedgezzz.pixnet.net/blog/post/27667546
這裡使用的 hash table 運用在台股代碼 array , 共有 12957 筆資料 , 看要找某一個代碼的 array index
- Dec 20 Fri 2013 16:17
semaphore between 2 process
- Dec 20 Fri 2013 14:27
implement swap in class with helper function
template<class T>
void swap_elems(T& lhs, T& rhs)
- Dec 20 Fri 2013 10:54
SFINAE in c++11
- Dec 20 Fri 2013 09:06
static and inline function in c++
inline 向 compiler 保證 , 你不管看到幾次 這個 function , 它的內容都一樣 !!
還有建議 compiler 將內容 "插入" 呼叫它的 function , compiler 可以選擇接受 or not !!
- Dec 19 Thu 2013 09:59
copy elision in c++ ---part 2
- Dec 18 Wed 2013 15:51
ref qualifier in c++11
這個例子只能用 c++11 , c++0x compiler 會失敗 !!!
- Dec 18 Wed 2013 12:51
Copy elision of c++ class
- Dec 18 Wed 2013 09:24
Pred function sample
class Mars
{
- Dec 17 Tue 2013 11:08
Choose carefully between map::operator[] and map::insert when efficiency is important
- Dec 16 Mon 2013 11:26
alloca --allocate memory on stack,not heap
alloca allocate memory on stack , 有以下優點 :
• There is very little overhead to the allocation process because the microprocessor
- Dec 13 Fri 2013 13:01
const_cast
class student
{
- Dec 13 Fri 2013 12:22
struct hack
struct People_
{
- Dec 13 Fri 2013 11:59
using bool in c
#include <stdio.h>
#include <stdbool.h>
- Dec 12 Thu 2013 08:39
-pthread 跟 -lpthread 差異
我在 stackoverflow 問了一個問題 !!!
http://stackoverflow.com/questions/20490058/confusing-core-dump-while-implementing-semaphore