Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDialogBox Problem Pin
ashishmax4726-Sep-08 23:22
ashishmax4726-Sep-08 23:22 
AnswerRe: DialogBox Problem Pin
CPallini26-Sep-08 23:45
mveCPallini26-Sep-08 23:45 
GeneralRe: DialogBox Problem Pin
ashishmax4727-Sep-08 0:17
ashishmax4727-Sep-08 0:17 
GeneralRe: DialogBox Problem Pin
CPallini27-Sep-08 0:32
mveCPallini27-Sep-08 0:32 
AnswerRe: DialogBox Problem Pin
Michael Dunn28-Sep-08 13:17
sitebuilderMichael Dunn28-Sep-08 13:17 
AnswerRe: DialogBox Problem Pin
KarstenK28-Sep-08 22:41
mveKarstenK28-Sep-08 22:41 
AnswerRe: DialogBox Problem Pin
Hamid_RT29-Sep-08 7:21
Hamid_RT29-Sep-08 7:21 
QuestionHow do I write a minimax c# code to show the results of the game tree from this info provided... Pin
Angelinna26-Sep-08 22:06
Angelinna26-Sep-08 22:06 
using System;
using System.Collections.Generic;
using System.Text;

public class Minimax
{
static void Main(string[] args)
{
// generate a simple game tree, starting with the root
Tree tree = new Tree(0);

// children of the root
tree.children = new Forest(new int[] { 0, 0 });

// children of the left child of the root
tree.children.first.children = new Forest(new int[] { 0, 7, 9 });

// children of the right child of the root
tree.children.rest.first.children = new Forest(new int[] { 4, 8, 6 });

// children of the leftmost child of the left child of the root
tree.children.first.children.first.children = new Forest(new int[] { 5, 3, 1 });


// write the expected and calculated minimax values to the console
Console.WriteLine("Expected minimax value is 5");
Console.WriteLine("Calculated minimax value of the tree " + tree.Minimax(true));
//Console.Write(tree.children.first);
Console.WriteLine("Press any key to exit ...");
Console.ReadKey();
AnswerRe: How do I write a minimax c# code to show the results of the game tree from this info provided... Pin
Cedric Moonen26-Sep-08 22:26
Cedric Moonen26-Sep-08 22:26 
AnswerRe: How do I write a minimax c# code to show the results of the game tree from this info provided... Pin
Dhiraj kumar Saini26-Sep-08 22:34
Dhiraj kumar Saini26-Sep-08 22:34 
QuestionVC++ COnverting a project from VS 2003 to VS 2005 - CRASH on exit Pin
AlexEvans26-Sep-08 20:53
AlexEvans26-Sep-08 20:53 
QuestionRe: VC++ COnverting a project from VS 2003 to VS 2005 - CRASH on exit Pin
Mark Salsbery27-Sep-08 8:55
Mark Salsbery27-Sep-08 8:55 
AnswerRe: VC++ COnverting a project from VS 2003 to VS 2005 - CRASH on exit Pin
AlexEvans27-Sep-08 17:44
AlexEvans27-Sep-08 17:44 
GeneralRe: VC++ COnverting a project from VS 2003 to VS 2005 - CRASH on exit Pin
Mark Salsbery28-Sep-08 9:31
Mark Salsbery28-Sep-08 9:31 
GeneralRe: VC++ COnverting a project from VS 2003 to VS 2005 - CRASH on exit Pin
AlexEvans28-Sep-08 12:35
AlexEvans28-Sep-08 12:35 
GeneralRe: VC++ COnverting a project from VS 2003 to VS 2005 - CRASH on exit Pin
Mark Salsbery28-Sep-08 12:41
Mark Salsbery28-Sep-08 12:41 
Question[Message Deleted] Pin
AnithaSubramani26-Sep-08 20:26
AnithaSubramani26-Sep-08 20:26 
QuestionRe: dll creation with Dialog Pin
Mark Salsbery27-Sep-08 8:58
Mark Salsbery27-Sep-08 8:58 
AnswerRe: dll creation with Dialog Pin
Hamid_RT29-Sep-08 7:19
Hamid_RT29-Sep-08 7:19 
QuestionGetting Drives name Pin
VCProgrammer26-Sep-08 19:28
VCProgrammer26-Sep-08 19:28 
AnswerRe: Getting Drives name Pin
Mahesh Kulkarni26-Sep-08 20:11
Mahesh Kulkarni26-Sep-08 20:11 
AnswerRe: Getting Drives name Pin
Xeqtr27-Sep-08 0:43
Xeqtr27-Sep-08 0:43 
AnswerRe: Getting Drives name Pin
Hamid_RT29-Sep-08 7:18
Hamid_RT29-Sep-08 7:18 
QuestionCommand Line Error !! Pin
Le@rner26-Sep-08 18:23
Le@rner26-Sep-08 18:23 
AnswerRe: Command Line Error !! Pin
Mahesh Kulkarni26-Sep-08 19:47
Mahesh Kulkarni26-Sep-08 19:47 

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.