Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #31.8K
2 Posted Topics
I am a newbie as well , so check carefully. I slightly modified your code and it seems to work well: #include <iostream> #include <string> using namespace std; void check_odd(int& n); //checks if n is an even or odd number then does syracuse fucntion int main() { int n; cout …
The following is a statement from a program on linked lists given to us in class. I do not understand why I have to add & for address when what is passed is a pointer which means it is passed by reference.: void CharNode::headInsert(CharNode* &head, char *d) { head = …
The End.
Shabtai