mallocat TECHmalloc - 暇つぶし2ch21:デフォルトの名無しさん 08/12/09 11:20:28 int i, *p, *pp; pp = (int**)mallc(20 * sizeof(int*) + 20 * 10 * sizeof(int)); p = (int*)((char*)pp + 20 * sizeof(int*)); for(i = 0; i < 20; i++) pp[i] = &p[i * 10]; /*これで pp はint pp[20][10]のような配列のように使える*/ free(pp); 次ページ続きを表示1を表示最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch