Search:

Type: Posts; User: bananaHUNT

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    1,354

    Graph problem

    There's an array of structs, containing the different routes between each points. For example:
    http://img693.imageshack.us/img693/9682/96931372.png

    Now what my program should do is, when a user...
  2. Replies
    11
    Views
    1,939

    int y ( 1 ); int x = 2^discs; for ( int...

    int y ( 1 );
    int x = 2^discs;
    for ( int i = 1 ; i < x ; i++ )
    {
    if ( i & 1 )
    {
    if ( y == 3 )
    {
    gold_discs--;
    ...
  3. Replies
    11
    Views
    1,939

    I'm sorry for ignoring your advice, I just don't...

    I'm sorry for ignoring your advice, I just don't know where to begin, so starting from my recursive code seems logical.

    Ok, I would guess you would have to transfer first the smallest disc, and...
  4. Replies
    11
    Views
    1,939

    ----

    ----
  5. Replies
    11
    Views
    1,939

    50 views and none is answering..

    50 views and none is answering..
  6. Replies
    11
    Views
    1,939

    Towers of Hanoi are ........ing me off

    Hi, I made the recursive solution for the ToH problem, but I can't wrap my head around the iterative version.
    I can't use vectors etc, just integer arrays or structs. Teacher gave me some clues...
Results 1 to 6 of 6