Search:

Type: Posts; User: Cdrwolfe

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,103

    Sorry, but i needed the actual value of X to...

    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...
  2. Replies
    7
    Views
    1,103

    Thanks, by the way [--X] will change the value of...

    Thanks, by the way [--X] will change the value of X, well looks like i've got some changes to do :D

    Thanks Wolfe
  3. Replies
    7
    Views
    1,103

    Simple Question

    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...
  4. Replies
    6
    Views
    1,845

    Well turns out i had also tried out what was in...

    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...
  5. Replies
    6
    Views
    1,845

    I believe i already have that coded in elsewhere,...

    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...
  6. Replies
    6
    Views
    1,845

    With regards to j-1 section it is ony there for...

    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
  7. Replies
    6
    Views
    1,845

    Rotations, Radians and -1.#IND oh my

    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...
  8. Replies
    10
    Views
    1,902

    Sorry if my use of arrays offends you Mario, i...

    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...
  9. Replies
    10
    Views
    1,902

    Genious, to be honest i'd never thought passing...

    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
  10. Replies
    10
    Views
    1,902

    Sorry it prb should have been j = j; essentially...

    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...
  11. Replies
    10
    Views
    1,902

    Thanks, any idea about the original question?

    Thanks, any idea about the original question?
  12. Replies
    10
    Views
    1,902

    Need some advice

    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.
    ...
  13. Thread: IF statement

    by Cdrwolfe
    Replies
    7
    Views
    1,031

    thanks

    thanks
  14. Thread: IF statement

    by Cdrwolfe
    Replies
    7
    Views
    1,031

    thanks, just realised there may have been a...

    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,
    ...
  15. Thread: IF statement

    by Cdrwolfe
    Replies
    7
    Views
    1,031

    tried that didn't work

    tried that didn't work
  16. Thread: IF statement

    by Cdrwolfe
    Replies
    7
    Views
    1,031

    IF statement

    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 &&...
  17. Replies
    8
    Views
    1,140

    LOL :D

    LOL :D
  18. Thread: Input Output?

    by Cdrwolfe
    Replies
    2
    Views
    1,017

    The original format can't be copy an pasted into...

    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...
  19. Thread: Input Output?

    by Cdrwolfe
    Replies
    2
    Views
    1,017

    Input Output?

    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:
    {
  20. Yep try the tutorial myself in Dev c++ to get...

    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...
  21. Thread: Or operator?

    by Cdrwolfe
    Replies
    18
    Views
    1,816

    Perhaps i should have been more clear, but yes. ...

    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...
  22. Thread: Or operator?

    by Cdrwolfe
    Replies
    18
    Views
    1,816

    Quick question? does this code do what iu...

    Quick question?

    does this code do what iu think it does?



    if (Grid[x-1][y] == 1)
    {
    Pop[index][11] = ++fitness;
    }
  23. Thread: Or operator?

    by Cdrwolfe
    Replies
    18
    Views
    1,816

    Thanks Mario. Regards Wolfe

    Thanks Mario.

    Regards Wolfe
  24. Thread: Or operator?

    by Cdrwolfe
    Replies
    18
    Views
    1,816

    Sorry..... It's set to 12/12 becuase i need to...

    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
  25. Thread: Or operator?

    by Cdrwolfe
    Replies
    18
    Views
    1,816

    Weird i know i definately read about adding them...

    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..
Results 1 to 25 of 84
Page 1 of 4 1 2 3 4