米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米

({Kk N*C1O,c(F n*B0金沙国际唯一官网网址 1

米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米

        //c++:handle    ----    c#:IntPtr
        //c++:hwnd      ----    c#:IntPtr
        
        
        //c++:void *    ----    c#:IntPtr        
        //c++:void * user_obj_param    ----    c#:IntPtr user_obj_param
        //c++:void * 对象名称    ----    c#:([MarshalAs(UnmanagedType.AsAny)]Object 对象名称

用结构和枚举,把国际象棋棋盘上的棋类,和格子颜色开始化为发轫境况
自家那一个有20多处错误,请大佬看看
#include
typedef enum {SOLDIER,HORSE,X,CAR,QUEEN,KING,EMPTY}Piece;
typedef enum {BLACK,WHITH}Color;
struct square{Piece a;Color b;};
int main
{

JU,c]X1K U%D0

c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c 米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米米

        //c++:unsigned char &   ----    c#:ref byte
        //c++:unsigned char 变量名      ----    c#:byte 变量名
        //c++:unsigned short 变量名     ----    c#:ushort 变量名
        //c++:unsigned int 变量名       ----    c#:uint 变量名
        //c++:unsigned long 变量名      ----    c#:ulong 变量名

int i,j;struct square board[8][8];(board[0][0].square.a)=(board[0][7].square.a)=(board[7][0].square.a)=(board[7][7].square.a)=CAR;(board[0][1].square.a)=(board[0][6].square.a)=(board[7][1].square.a)=(board[7][6].square.a)=HORSE;(board[0][2].square.a)=(board[0][5].square.a)=(board[7][2].square.a)=(board[7][5].square.a)=X;(board[0][3].square.a)=(board[7][4].square.a)=QUEEN;(board[0][4].square.a)=(board[7][3].square.a)=KING;for(i=0;i<8;i++) board[1][i].square.a=board[7][i].square.a=SOLDIER;for(i=0;i<8;i++){ for(j=0;j<8;j++){ if baord[i][j].square.b=WHITH; else board[i][j].square.b=BLACK; }}for(i=2;i<6;i++){ for(j=0;j<8;j++) board[i][j].square.a=EMPTY; }printf("输入方格坐标:");scanf("%d %d",&i,&j);printf("棋子:%d颜色:%d",board[i][j].square.a,board[i][j].square.b);return 0;

aVojH]k%UiqL0市水土保持总站、延庆县水财富局的有关官员陪同检查。

//C++中的DLL函数原型为
        //extern "C" __declspec(dllexport卡塔尔 bool 方法名意气风发(const char* 变量名1, unsigned char* 变量名2)
        //extern "C" __declspec(dllexport卡塔尔国 bool 方法名二(const unsigned char* 变量名1, char* 变量名2)

chapter16exercise18.obj - 27 error, 0 warning

        //c++:char 变量名       ----    c#:byte 变量名   //C++中四个字符用贰个字节表示,C#中一个字符用多少个字节表示
        //c++:char 数组名[数组大小]     ----    c#:MarshalAs(UnmanagedType.ByValTStr, SizeConst = 数组大小卡塔尔(英语:State of Qatar)]        public string 数组名; ushort

以下是错误音讯:
ompiling...
chapter16exercise18.c
D:cc第十三章构造联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十八章构造联合枚举chapter16exercise18.c : see declaration of 'square'
D:cc第十楚辞构造联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十四章结构联合枚举chapter16exercise18.c : see declaration of 'square'
D:cc第十三章布局联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十四章布局联合枚举chapter16exercise18.c : see declaration of 'square'
D:cc第十七章布局联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十五章构造联合枚举chapter16exercise18.c : see declaration of 'square'
D:cc第十四章布局联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十七章构造联合枚举chapter16exercise18.c : see declaration of 'square'
D:cc第十天问结构联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十三章布局联合枚举chapter16exercise18.c : see declaration of 'square'
D:cc第十四章布局联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十二章布局联合枚举chapter16exercise18.c : see declaration of 'square'
D:cc第十楚辞结构联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十二章布局联合枚举chapter16exercise18.c : see declaration of 'square'
D:cc第十八章构造联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十三章结构联合枚举chapter16exercise18.c : see declaration of 'square'
D:cc第十七章布局联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十一章结构联合枚举chapter16exercise18.c : see declaration of 'square'
D:cc第十八章构造联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十八章布局联合枚举chapter16exercise18.c : see declaration of 'square'
D:cc第十三章布局联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十一章构造联合枚举chapter16exercise18.c : see declaration of 'square'
D:cc第十九歌构造联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十二章布局联合枚举chapter16exercise18.c : see declaration of 'square'
D:cc第十一章构造联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十九歌结构联合枚举chapter16exercise18.c : see declaration of 'square'
D:cc第十四章布局联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十二章构造联合枚举chapter16exercise18.c : see declaration of 'square'
D:cc第十二章布局联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十四章布局联合枚举chapter16exercise18.c : see declaration of 'square'
D:cc第十四章构造联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十一章布局联合枚举chapter16exercise18.c : see declaration of 'square'
D:cc第十二章构造联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十七章构造联合枚举chapter16exercise18.c : see declaration of 'square'
D:cc第十七章构造联合枚举chapter16exercise18.c : error C2106: '=' : left operand must be l-value
D:cc第十二章构造联合枚举chapter16exercise18.c : error C2065: 'baord' : undeclared identifier
D:金沙国际唯一官网网址,cc第十天问构造联合枚举chapter16exercise18.c : error C2109: subscript requires array or pointer type
D:cc第十四章布局联合枚举chapter16exercise18.c : error C2109: subscript requires array or pointer type
D:cc第十八章构造联合枚举chapter16exercise18.c : error C2224: left of '.square' must have struct/union type
D:cc第十一章布局联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十一章构造联合枚举chapter16exercise18.c : see declaration of 'square'
D:cc第十八章构造联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十二章构造联合枚举chapter16exercise18.c : see declaration of 'square'
D:cc第十四章构造联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十二章布局联合枚举chapter16exercise18.c : see declaration of 'square'
D:cc第十二章构造联合枚举chapter16exercise18.c : error C2039: 'square' : is not a member of 'square'
D:cc第十三章构造联合枚举chapter16exercise18.c : see declaration of 'square'
Error executing cl.exe.

        //C#调用C++的DLL收罗收拾的有所数据类型转变方式,可能会有重新也许二种方案,本身多测量检验
        //c++:HANDLE(void   *)          ----    c#:System.IntPtr 
        //c++:Byte(unsigned   char)     ----    c#:System.Byte 
        //c++:SHORT(short)              ----    c#:System.Int16 
        //c++:WORD(unsigned   short)    ----    c#:System.UInt16 
        //c++:INT(int)                  ----    c#:System.Int16
        //c++:INT(int)                  ----    c#:System.Int32 
        //c++:UINT(unsigned   int)      ----    c#:System.UInt16
        //c++:UINT(unsigned   int)      ----    c#:System.UInt32
        //c++:LONG(long)                ----    c#:System.Int32 
        //c++:ULONG(unsigned   long)    ----    c#:System.UInt32 
        //c++:DWORD(unsigned   long)    ----    c#:System.UInt32 
        //c++:DECIMAL                   ----    c#:System.Decimal 
        //c++:BOOL(long)                ----    c#:System.Boolean 
        //c++:CHAR(char)                ----    c#:System.Char 
        //c++:LPSTR(char   *)           ----    c#:System.String 
        //c++:LPWSTR(wchar_t   *)       ----    c#:System.String 
        //c++:LPCSTR(const   char   *)  ----    c#:System.String 
        //c++:LPCWSTR(const   wchar_t   *)      ----    c#:System.String 
        //c++:PCAHR(char   *)   ----    c#:System.String 
        //c++:BSTR              ----    c#:System.String 
        //c++:FLOAT(float)      ----    c#:System.Single 
        //c++:DOUBLE(double)    ----    c#:System.Double 
        //c++:VARIANT           ----    c#:System.Object 
        //c++:PBYTE(byte   *)   ----    c#:System.Byte[] 

}

        //c++:UCHAR     ----    c#:int
        //c++:UCHAR     ----    c#:byte
        //c++:UCHAR*    ----    c#:string
        //c++:UCHAR*    ----    c#:IntPtr