スレを勃てるまでもないC/C++の質問はここで 15
■ このスレッドは過去ログ倉庫に格納されています
0652デフォルトの名無しさん
2010/06/15(火) 19:29:53int type; /* 0なら四角、1なら丸*/
int yoko; /* 幅*/
int tate; /* 高さ*/
};
struct Cir {
int type; /* 0なら四角、1なら丸*/
int r; /* 半径*/
};
struct Zukei {
int type; /* 0なら四角、1なら丸*/
};
void RecCreate(void* hoge){
(Rec*)hoge->type=0;
(Rec*)hoge->yoko=10;
(Rec*)hoge->tate=5;
}
void CirCreate(void* hoge){
(Rec*)hoge->type=0;
(Rec*)hoge->r=7;
}
■ このスレッドは過去ログ倉庫に格納されています