推薦図書/必読書のためのスレッド in ゲ製作技術 4at GAMEDEV
推薦図書/必読書のためのスレッド in ゲ製作技術 4 - 暇つぶし2ch723:暴走サンプル
09/08/15 12:35:41 bniN4FJh
------ main.c --------
#include <stdio.h>

struct A {
int i;
};

extern struct A test();

int main() {
struct A a = test();
printf("%d\n", a.i);

return 0;
}
------ test.c --------
struct A {
int i;
int j;
};

struct A test() {
struct A a;
a.i = 0;
a.j = 1;
return a;
}


次ページ
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch