Click here to Skip to main content
15,901,825 members
Home / Discussions / C#
   

C#

 
QuestionGet all namespaces Pin
iqueiroz22-Feb-07 23:15
iqueiroz22-Feb-07 23:15 
QuestionRecognize sounds from midi Pin
sharpiesharpie22-Feb-07 23:12
sharpiesharpie22-Feb-07 23:12 
AnswerRe: Recognize sounds from midi Pin
Christian Graus23-Feb-07 0:00
protectorChristian Graus23-Feb-07 0:00 
AnswerRe: Recognize sounds from midi Pin
Leslie Sanford24-Feb-07 9:28
Leslie Sanford24-Feb-07 9:28 
QuestionSearch binary string? Pin
Monk11122-Feb-07 22:45
Monk11122-Feb-07 22:45 
AnswerRe: Search binary string? Pin
Stefan Troschuetz22-Feb-07 23:08
Stefan Troschuetz22-Feb-07 23:08 
AnswerRe: Search binary string? Pin
Christian Graus22-Feb-07 23:11
protectorChristian Graus22-Feb-07 23:11 
Questionpredifined array of structures in C#? Pin
bouli22-Feb-07 22:22
bouli22-Feb-07 22:22 
Hello gurus,

I'd like to know how is it possible to declare a predefined array of structure in C#?

The C declaration is like this:
typedef struct st_move_def {<br />
	int byte;<br />
	int bit;<br />
} MOVE_DEF ;<br />
<br />
static MOVE_DEF move_tab [8][8] = {<br />
	{ {5, 8}, {3, 4}, {7, 6}, {4, 7}, {6, 3}, {2, 8}, {1, 5}, {8, 3} },	/*1*/<br />
	{ {8, 4}, {4, 5}, {2, 4}, {7, 8}, {1, 3}, {6, 5}, {5, 1}, {3, 2} },	/*2*/<br />
	{ {4, 1}, {2, 2}, {3, 3}, {1, 7}, {5, 2}, {7, 7}, {8, 6}, {6, 6} },	/*3*/<br />
	{ {7, 5}, {5, 6}, {1, 4}, {8, 2}, {2, 7}, {6, 1}, {4, 8}, {3, 1} },	/*4*/<br />
	{ {8, 8}, {1, 6}, {2, 1}, {6, 7}, {4, 2}, {7, 1}, {3, 5}, {5, 4} },	/*5*/<br />
	{ {3, 7}, {5, 7}, {6, 2}, {1, 2}, {7, 3}, {2, 6}, {4, 6}, {8, 1} },	/*6*/<br />
	{ {6, 4}, {8, 5}, {7, 2}, {5, 3}, {1, 1}, {3, 8}, {2, 5}, {4, 4} },	/*7*/<br />
	{ {3, 6}, {4, 3}, {6, 8}, {2, 3}, {8, 7}, {1, 8}, {5, 5}, {7, 4} }	/*8*/<br />
};


and I need to translate it into C#.

How can I do this please?

Best regards.

Fred.



There is no spoon.

AnswerRe: predifined array of structures in C#? Pin
Christian Graus22-Feb-07 22:27
protectorChristian Graus22-Feb-07 22:27 
GeneralRe: predifined array of structures in C#? Pin
bouli22-Feb-07 22:45
bouli22-Feb-07 22:45 
GeneralRe: predifined array of structures in C#? Pin
Christian Graus22-Feb-07 23:38
protectorChristian Graus22-Feb-07 23:38 
GeneralRe: predifined array of structures in C#? Pin
bouli22-Feb-07 23:39
bouli22-Feb-07 23:39 
GeneralRe: predifined array of structures in C#? Pin
Luc Pattyn23-Feb-07 10:13
sitebuilderLuc Pattyn23-Feb-07 10:13 
QuestionReferencing a dll or ActiveX Control in .net Pin
salon22-Feb-07 22:06
salon22-Feb-07 22:06 
AnswerRe: Referencing a dll or ActiveX Control in .net Pin
Christian Graus22-Feb-07 22:30
protectorChristian Graus22-Feb-07 22:30 
GeneralRe: Referencing a dll or ActiveX Control in .net Pin
salon22-Feb-07 22:38
salon22-Feb-07 22:38 
QuestionHex to binary? Pin
Monk11122-Feb-07 21:24
Monk11122-Feb-07 21:24 
AnswerRe: Hex to binary? Pin
Sylvester george22-Feb-07 22:16
Sylvester george22-Feb-07 22:16 
AnswerRe: Hex to binary? Pin
blackjack215022-Feb-07 22:16
blackjack215022-Feb-07 22:16 
AnswerRe: Hex to binary? Pin
Christian Graus22-Feb-07 22:26
protectorChristian Graus22-Feb-07 22:26 
QuestionThere is finish painting event? Pin
aukh22-Feb-07 21:17
aukh22-Feb-07 21:17 
AnswerRe: There is finish painting event? Pin
Christian Graus22-Feb-07 23:39
protectorChristian Graus22-Feb-07 23:39 
AnswerRe: There is finish painting event? Pin
Luc Pattyn23-Feb-07 10:20
sitebuilderLuc Pattyn23-Feb-07 10:20 
Generaltextbox cairrage return Pin
V.22-Feb-07 21:01
professionalV.22-Feb-07 21:01 
GeneralRe: textbox cairrage return Pin
Christian Graus22-Feb-07 23:57
protectorChristian Graus22-Feb-07 23:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.