2010年1月19日 星期二

DEV C++ 的malloc用法

int *ptr = (int*) malloc(sizeof(int));

要這樣寫才算是完整的!!

in reference to:

"int *ptr = malloc(sizeof(int));"
- malloc()、free()、calloc() 與 realloc() (view on Google Sidewiki)

沒有留言:

張貼留言