Forum: Java Nov 30th, 2008 |
| Replies: 4 Views: 495 You shouldn't ever be returning the operators though, only the result of operations or the number value in the node.
In the first branch, after you apply the operator to the two children, you... |
Forum: C++ Aug 22nd, 2008 |
| Replies: 7 Views: 580 A lot of important questions here, so I will try and answer them the best I can.
First, the main difference between passing by value and passing by reference.. When we pass by value, the receiving... |
Forum: C++ Aug 20th, 2008 |
| Replies: 4 Views: 1,320 This is a prime example of how I see some students graduate in computer science and don't understand basic object oriented programming concepts. You need to figure this out yourself. Of course if you... |
Forum: C++ Aug 20th, 2008 |
| Replies: 10 Views: 1,087 To be a bit clearer, you can use the stringstream class like so:
#include <iostream>
#include <sstream>
using namespace std;
int main() {
stringstream ss; // our stringstream object
... |