Search:

Type: Posts; User: Kurdo

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    1,144

    Ah i found it! if(route[i+2]==destination)...

    Ah i found it!


    if(route[i+2]==destination)
    {
    printf("\nDestination Reached\n");
    exit(EXIT_SUCCESS);
    }

    route[i+2] should be...
  2. Replies
    11
    Views
    1,144

    oh yeah i forgot to mention, the mines can only...

    oh yeah i forgot to mention, the mines can only be placed at the dots in the map, not in the cross sections. But that isnt really the problem. The problem is that when i put 1 as source and 16 as...
  3. Replies
    11
    Views
    1,144

    Ah yes, your right. But that still didn't solve...

    Ah yes, your right. But that still didn't solve it :(
  4. Replies
    11
    Views
    1,144

    the robot is programmed in VHDL, if it finds a...

    the robot is programmed in VHDL, if it finds a mine, it wil send a signal to the computer. That signal is "0" in my code. The mines are put in the map randomly.
  5. Replies
    11
    Views
    1,144

    Ok sorry about that, I'm going to edit it now. ...

    Ok sorry about that, I'm going to edit it now.

    Thanks a lot!
  6. Replies
    11
    Views
    1,144

    There is no correct answer. You just choose a...

    There is no correct answer. You just choose a starting point and an ending point. Dijkstra's algorithm will then give you the shortest path. From that path, I have to give the directions between each...
  7. Replies
    11
    Views
    1,144

    shortest path (SOLVED)

    Solved, thanks :)
  8. Replies
    15
    Views
    47,042

    Ok, thanks i'm gonna try it out.

    Ok, thanks i'm gonna try it out.
  9. Replies
    15
    Views
    47,042

    Ok, you you mean i can print the *p to get the...

    Ok, you you mean i can print the *p to get the ASCII representation?

    Also i am using isdigit atm.

    Sorry if seemed a bit rude, that wasnt the intention.

    This is what i have now:
  10. Replies
    15
    Views
    47,042

    can you read my question again, i've edited it. I...

    can you read my question again, i've edited it. I hope it more clear now.
  11. Replies
    15
    Views
    47,042

    the 135 was just a random number. Let's forget...

    the 135 was just a random number. Let's forget that i said that :P.

    This assignment is for a parser. The input is some expression. I have to find the numbers in the expression and convert them to...
  12. Replies
    15
    Views
    47,042

    no, that was just a random integer. I have to...

    no, that was just a random integer. I have to show a number in the ASCII representation.
  13. Replies
    15
    Views
    47,042

    Converting Integer to ASCII

    Hi,

    I have to program a parser that parses expressions. The input is a string (an expression). I have to make a function called get_number. It checks if there are numbers in the string. Also to...
  14. Replies
    1
    Views
    2,235

    Yahtzee score selection

    Hey,

    I have to program the game yahtzee and at some point I have to check if the score selection is correct. It's correct if the input matches the score types and if the score isn't used already. ...
Results 1 to 14 of 14