Author: Joshua Haglund
Date: 15:13:27 01/07/03
I have a question with the follow code:
#include <iostream>
#include <string>
using namespace std;
int move() {
string move[5] { "e2e4", "d2d4", "c2c4", "g1f3", "b1c3"
};
int score[5] { 10, 9, 8, 5, 4
};
Now I want to pass the score of score[0] by reference &score[0] with the string
move[0].
Examples:
move[0] = 10
move[1] = 9
etc...
Eventually I want to
cout << m << endl; // m being e2e4.
I'm not sure how to write this.
Any help would be nice!
Thanks,
Joshua
toneewa@yahoo.com
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.