#include <stdio.h>
#define TRUE 1
struct s_int {
char index ;
int x ;
int y ;
} ;
void DrawGraph(int x, int y, int sprite, int flag)
{
}
void Object ()
{
/* 構造体変数の宣言 */
static struct s_int iobject ; // iobject
static int switch_01 = 1;
int SPRITE[1] = {0};
if ( switch_01 == 1 )
{
// /* 構造体変数の宣言 */
// struct s_int iobject ; // iobject
/* 構造体変数の初期化 */
// iobject.index = "1" ; // char型の文字代入ができない問題
iobject.x = 112 ;
iobject.y = 96 ;
switch_01 = 0 ; // 初期化スイッチを切る(0がOFF) これでもうこの処理には入らない
}
DrawGraph ( iobject.x , iobject.y , SPRITE [ 0 ] , TRUE ) ; // キャラクターを表示する
}
int main()
{
Object();
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgojZGVmaW5lIFRSVUUgMQoKc3RydWN0IHNfaW50IHsKCWNoYXIgaW5kZXggOwoJaW50IHggOwoJaW50IHkgOwp9IDsKCnZvaWQgRHJhd0dyYXBoKGludCB4LCBpbnQgeSwgaW50IHNwcml0ZSwgaW50IGZsYWcpCnsKCXByaW50ZigiJWQgJWRcbiIsIHgsIHkpOwp9Cgp2b2lkIE9iamVjdCAoKQp7CgkvKiDmp4vpgKDkvZPlpInmlbDjga7lrqPoqIAgKi8KCXN0YXRpYyBzdHJ1Y3Qgc19pbnQgaW9iamVjdCA7IC8vIGlvYmplY3QKCXN0YXRpYyBpbnQgc3dpdGNoXzAxID0gMTsKCWludCBTUFJJVEVbMV0gPSB7MH07CgoJaWYgKCBzd2l0Y2hfMDEgPT0gMSApCgl7Ci8vCQkvKiDmp4vpgKDkvZPlpInmlbDjga7lrqPoqIAgKi8KLy8JCXN0cnVjdCBzX2ludCBpb2JqZWN0IDsgLy8gaW9iamVjdAoKCQkvKiDmp4vpgKDkvZPlpInmlbDjga7liJ3mnJ/ljJYgKi8KCQkvLyBpb2JqZWN0LmluZGV4ID0gIjEiIDsgLy8gY2hhcuWei+OBruaWh+Wtl+S7o+WFpeOBjOOBp+OBjeOBqu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