#include <stdio.h>
#include <stdlib.h>
#include <iostream>
using namespace std;
typedef struct {
int p;
int i;
int d;
int a;
}Pid;
typedef struct {
int a;
int b[3];
}Fpa;
typedef struct{
Pid pid[4];
Fpa fpa;
}Page;
typedef struct {
int uvin;
int ovin;
}Global;
typedef struct {
Global global;
Page page[2];
}CfgData;
CfgData g_cfg = {
{
8, 10,
},
{
{
{ 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 },
},
{
0,
{ 0, 0, 0 }
},

},
{
{
{ 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 },
},
{
0,
{ 0, 0, 0 }
},
},
};
void main(void)
{
cout << g_cfg.global.uvin << "000";
return;
}
uj5u.com熱心網友回復:
uj5u.com熱心網友回復:
你寫的東西和你的定義完全對不上啊。uj5u.com熱心網友回復:
這么復雜的結構體,定義的時候也頭都暈了。個人感覺出錯很正常,不出錯也不是好代碼轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/121032.html
標籤:C++ 語言
