Pass by value vs. Pass by reference
Type: Posts; User: mcha
Pass by value vs. Pass by reference
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.
Why don't you try this?
Try this.
#include <fstream>
#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
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...
Probably, you want
sum2 += values[j]
Have a good programming habit.
{ } then put your code.
It's Java
Maybe usb-serial driver is not working properly.
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...
If I assume there is already an array, then
Something like this??
-------
Read length
convert to int
for 0 to length
array[i] = 0
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...