Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 28
Member Avatar for GhostMonkey

Hey, I've got a list that takes in the current co-ordinates from a board. I'm trying to sort that list using the Manhattan distance heuristic but I'm not sure how to go about it. My list is simply [CODE] list<int> list1;[/CODE] With the formula by which it should be sorted …

Member Avatar for raptr_dflo
0
103
Member Avatar for GhostMonkey

Hey, I've got my code finished but I need a working exe file but I cant find where it is. The only files I have are the source codes and a sql server compact edition database file whatever that is, which I cant open. Anyone know where I can get …

Member Avatar for GhostMonkey
0
111
Member Avatar for GhostMonkey

Hey if I have a value that was p=3 in a for loop, and after a few loops it gets changed to p=6 is there anyway to say "go back to previous value"?

Member Avatar for L7Sqr
0
998
Member Avatar for GhostMonkey

Hi, I've got an array where you enter values into it but I want the values you enter to be a separate colour from the values initially in the array. I tried simply using set colour when you enter the value but I've coded it so that after every user …

Member Avatar for GhostMonkey
0
101
Member Avatar for GhostMonkey

Hey, I've got this code that scans a 3x3 section of a 9x9 array. Heres the code: [CODE]for (j=x; j<x+3; j++) { for (i=y; i<y+3; i++) { if (array[i][j] == value) { cout<< "Number already used in Section" << endl; } } }[/CODE] It works fine if you start from …

Member Avatar for GhostMonkey
0
91
Member Avatar for GhostMonkey

I've been trying all day to write an array into a file but it doesnt work. The code I'm using is: [CODE] fstream myfile; myfile.open ("array.txt"); for(int i=0;i<=9;i++) { for (j=0; j<9; j++) myfile<<array[i][j]<<endl; } myfile.close();[/CODE] What am I doing wrong? This works if I knew what I was writing …

Member Avatar for GhostMonkey
0
99
Member Avatar for GhostMonkey

Hi, I need some help writing a text file into an array. I've got the text file opening and displaying but its at the bottom of the page instead of where the array is. Would it work if I just set the position to (0,0)? Heres the code for the …

Member Avatar for GhostMonkey
0
75