次のコードでb.st_0の値がコードでは10と記述したのに、何故か0になってしまいます。何故なのでしょうか?
#include "DxLib.h"
typedef struct {
int s_0[10];
int st_0;
}times_t;
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
ChangeWindowMode(TRUE); // ウィンドウモードに変更
ClearDrawScreen(); //裏画面のデータを全て削除
if (DxLib_Init() == -1) return -1;
times_t b = { 0,10 };
DrawFormatString(140, 100, GetColor(255, 255, 255), "%d", b.st_0);
ScreenFlip(); //裏画面データを表画面へ反映
DxLib_End(); // DXライブラリ使用の終了処理
return 0; // ソフトの終了
}