Search:

Type: Posts; User: WatchTower

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    1,753

    You should learn how to use the looping structure...

    You should learn how to use the looping structure in C. You can just google it out.
  2. Replies
    4
    Views
    15,039

    You do not need "person *p" to delete a node in...

    You do not need "person *p" to delete a node in front. You cannot point temp to p anymore after bringing back the memory to the operating system. As tabstop mentioned you have to make the head point...
  3. Replies
    17
    Views
    3,300

    At least I now understand why there are lots of...

    At least I now understand why there are lots of compilers. So if the compiler follows the standardization of C then I guess that would be the compiler of your choice?
  4. Replies
    12
    Views
    1,436

    You can google out "Truth Table" it'll help you...

    You can google out "Truth Table" it'll help you understand it easily.
  5. Replies
    21
    Views
    6,282

    I agree, that would be a pretty good advice....

    I agree, that would be a pretty good advice. Remember that in developing an application, planning is the longest part. You have to think first, analyze the problem.
  6. Replies
    17
    Views
    3,300

    What I don't like in C programming is having...

    What I don't like in C programming is having different types of compiler around and you must have enough knowledge to know which is good or not.
  7. Replies
    12
    Views
    1,436

    this...

    this thread can help you as well.
  8. The break statement is not inside the for loop....

    The break statement is not inside the for loop. Remember that if you have to execute more than one statement in a for loop you have to enclose it using the "{" and "}".
  9. Replies
    11
    Views
    4,517

    The output was truly a surprise, I never thought...

    The output was truly a surprise, I never thought of this existing in C.. But a very good example though.
  10. Replies
    4
    Views
    2,588

    I never thought of that, so simple, hehehehe..

    I never thought of that, so simple, hehehehe..
  11. Thread: help

    by WatchTower
    Replies
    10
    Views
    1,148

    x is assigned value but it's not used.

    x is assigned value but it's not used.
  12. Replies
    4
    Views
    2,588

    Modulus division

    I have been doing lots of exercises on the book that I have then I went to encryption. This is just a very simple encryption on the book. It says that you have to enter only 4 digit number and each...
  13. Replies
    9
    Views
    5,769

    So with the code sample that you showed to me,...

    So with the code sample that you showed to me, the tower will also move. So to animate the towers and disk both the tower and disk should move. I thought the only thing that will move are the disks.
  14. Replies
    9
    Views
    5,769

    This truly challenging for me. Thank you for the...

    This truly challenging for me. Thank you for the algorithm, this is all I need to start coding this. I'll be posting my updated code just in case I experienced a problem. I'll be analyzing the...
  15. Replies
    9
    Views
    5,769

    Exactly, I can use the gotoxy of borland to make...

    Exactly, I can use the gotoxy of borland to make it move, but prior to that I must have an idea on how to resolve the problem I have stated in my first post.
  16. Replies
    9
    Views
    5,769

    Towr of Hanoi move the disc

    I already created the solver for the tower of hanoi. But I wanted to make a simple presentation of how the solver is working by showing the movement of the box as shown below. The problem I'm facing...
  17. Replies
    11
    Views
    3,511

    After hours of writing lots of traces in...

    After hours of writing lots of traces in recursion I now understand what actually happened. I also tried your example sebastiani, thanks so much for your sample program.
  18. Replies
    11
    Views
    3,511

    Thanks for the example, but my brain is not...

    Thanks for the example, but my brain is not working in that example. Here's the calling I created. I don't know if this is correct or not, if it's correct then the problem I have is understanding the...
  19. Replies
    11
    Views
    3,511

    //2 void hanoi( int disc_num ) { if(...

    //2
    void hanoi( int disc_num )
    {
    if( disc_num != 0 )
    {
    //first function call
    hanoi( disc_num - 1 );
    printf( "Me first\n" );

    //function function call
  20. Replies
    11
    Views
    3,511

    I actually understand how recursive function...

    I actually understand how recursive function works ( but only with recursive function calling itself once ) but this is my first time analyzing a recursive function calling itself twice.
  21. Replies
    11
    Views
    3,511

    I've traced it many times but can't get it. ...

    I've traced it many times but can't get it.



    void hanoi( int disc_num, int peg1, int peg2, int peg3 )
    {
    if( disc_num != 0 )
    {
    hanoi( disc_num - 1, peg1, peg3, peg2 ); //this...
  22. Replies
    11
    Views
    3,511

    Recursive function

    Coming from the idea of other programmers around the net I have coded this tower of hanoi solver using recursive function. The problem i'm facing is analyzing how the recursion processed the...
  23. Replies
    11
    Views
    6,459

    I see, I understand now.

    I see, I understand now.
  24. Replies
    11
    Views
    6,459

    ok, so I understand that it switch doesn't have...

    ok, so I understand that it switch doesn't have to check any condition. What do you mean at bottom? computed goto?

    I was just curious what is the : switch( gender ) <- isn't this a condition? How...
  25. Replies
    11
    Views
    6,459

    It doesn't need to check the cases is that what...

    It doesn't need to check the cases is that what you mean? If we remove break it's going to execute the succeeding statement to the next case does that prove that it's not checking the cases?


    ...
Results 1 to 25 of 40
Page 1 of 2 1 2