Sorry, but i needed the actual value of X to change as well after it had been 'scanned' so to speak. saves me having to add in a line X = X - 1; later one even though i still have to do it for X - 2...
Type: Posts; User: Cdrwolfe
Sorry, but i needed the actual value of X to change as well after it had been 'scanned' so to speak. saves me having to add in a line X = X - 1; later one even though i still have to do it for X - 2...
Thanks, by the way [--X] will change the value of X, well looks like i've got some changes to do :D
Thanks Wolfe
Hi All, simple question i hope,
Just wanted some clarification on some of the arrays i've being fiddlng with, i won't get into to much detail but essentially a 2D array comprising two integers X...
Well turns out i had also tried out what was in that link aswell :D, though i couldn't get that to work either lol
Here is a snippet :)
nX[0] = Pop[i][j][0]; // store for...
I believe i already have that coded in elsewhere, if you mean by rotating around each axis. What i was trying to do know is, if oyu have a string of nodes connected as a chain in a 3D space, i want...
With regards to j-1 section it is ony there for me to check the distances remain valid nothing else omes from it once i can finally be certain it works i will get rid of it.
Regards Wolfe
Hello one and all.
I've been tampering with rotation matrixes and the lot, and even though i can manage the more simpler rotation around the three axes. my attempts at trying it around an...
Sorry if my use of arrays offends you Mario, i just find them easier to handle and understand. Moreso then strings at the moment.
I didn't realise asking help was a crime, i'am not forcing...
Genious, to be honest i'd never thought passing parameters and the order ever mattered, I had never read otherwise.
Anyway thank you very much JaWiB
Sorry it prb should have been j = j; essentially fills POPinit with 7's until it reaches aminoacid length.
Yes, i thought my error might have something to do with having void, plus it's a bad...
Thanks, any idea about the original question?
I've been racking my brain and changing/editing this one section of codes for hours now and i can't figure out why it doesn't work.
Basically it seems to clear my array for no apparent reason.
...
thanks
thanks, just realised there may have been a problem earlier on the code.
int Env[0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,
...
tried that didn't work
I always seem to have trouble getting the right balance on if statements which contain AND's and OR's.
whats wrong with this
IF (Env[j] == 1 && POPinit[i][j] == 1 || Env[j] == 1 &&...
LOL :D
The original format can't be copy an pasted into matlab like this:
[29,29,29,28,28,28,28,28,27,27,27,27,28,28,28,28,28 ,28,28,28,29,29,29,29,29]
Thats why i can't use the original format i have...
Hi all i was wondering if i could get some help on input output.
ofstream a_file ( "3D Graph.txt", ios::app);
for loop;
case 0:
{
Yep try the tutorial myself in Dev c++
to get the last one to work you need to link (not the one posted)
I had to link these libraries:
../../../../Dev-Cpp/lib/libglaux.a...
Perhaps i should have been more clear, but yes.
If the if statement is true, then Pop[index][11] = 1,
what i need to know is does this part work as intended:
(Grid[x-1][y] == 1)
ie...
Quick question?
does this code do what iu think it does?
if (Grid[x-1][y] == 1)
{
Pop[index][11] = ++fitness;
}
Thanks Mario.
Regards Wolfe
Sorry.....
It's set to 12/12 becuase i need to make sure the sequence created doesn't go "out of bounds"
Here is the wholfe thing if you want a look.
Oh and input has to be over 10 int's
Weird i know i definately read about adding them so i did, but yes your right they are not needed, now i've got to find out where i read it :)
Thanks..