Search:

Type: Posts; User: mcha

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,638

    Pass by value vs. Pass by reference

    Pass by value vs. Pass by reference
  2. Sorry about my laziness. I just copied and...

    Sorry about my laziness. I just copied and pasted the original code and tried to make it work. I agree with you about the indent and loop control.
  3. Why don't you try this?

    Why don't you try this?
  4. Try this. #include #include...

    Try this.



    #include <fstream>
    #include <iostream>
    #include <string>
    #include <stdlib.h>

    using namespace std;
  5. Replies
    3
    Views
    894

    You don't have to use 2-d array. First, reverse...

    You don't have to use 2-d array. First, reverse the word by swapping char at first/last index and increase/decrease by 1 until both indexes meet. And make memory space using...
  6. Replies
    5
    Views
    760

    Probably, you want sum2 += values[j]

    Probably, you want


    sum2 += values[j]
  7. Thread: fatal problem

    by mcha
    Replies
    2
    Views
    1,646

    Have a good programming habit. { } then put...

    Have a good programming habit.
    { } then put your code.
  8. Thread: Battleship help

    by mcha
    Replies
    3
    Views
    2,185

    It's Java

    It's Java
  9. Replies
    8
    Views
    26,631

    Maybe usb-serial driver is not working properly.

    Maybe usb-serial driver is not working properly.
  10. Replies
    6
    Views
    13,229

    Thanks all. But iMalc, the problem is that once...

    Thanks all. But iMalc, the problem is that once I put nodes with children, and starts poping off from stack when there is no children, if a popped node is a parent of any, then we have infinite loop...
  11. Thread: Global Arrays

    by mcha
    Replies
    2
    Views
    1,302

    If I assume there is already an array, then...

    If I assume there is already an array, then
    Something like this??

    -------
    Read length
    convert to int
    for 0 to length
    array[i] = 0
  12. Replies
    6
    Views
    13,229

    Iterative postorder traversal for BST

    Hi,
    I been trying to implement postorder traversal for iterative version. I have done pre and inorder traversal but I can't figure out postorder. Maybe I use stack operation in a wrong way. Code...
Results 1 to 12 of 12