|
-
November 28th, 2004, 06:03 PM
#1
110 percent novice
I have written a good deal of code in java and now must port a program to C++.
If I have a method that returns an object in java equivalently I will return a pointer in c++?
example:
//java
public treeNode getNode(){
return rootNode;
}
//C++
treeNode* getNode(){
return *rootNode;
}
//please pick apart any and all syntactical errors I have made. Thanks!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|