#include <stdio.h>
#include"DxLib.h"
typedef struct {
int HP;
int MP;
int Money;
int Exp;
}SaveData_t;
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) {
SaveData_t Data = { 200, 100, 1000, 1000 };
FILE *fp = fopen("セーブデータ.dat", "wb");
if (fp == NULL) {
return 0;
}
fwrite(&Data, sizeof(Data), 1, fp);
fclose(fp);
return 0;
}
重大度レベル コード 説明 プロジェクト ファイル 行 抑制状態
エラー D8004 '/wd' には引数が必要です GameProg_2012 C:\Users\ryuu\Desktop\Ⅽ言語\GameProg_2012\cl 1