The only time I need the total is for output.
Thank you for your response!
Type: Posts; User: misterpogos
The only time I need the total is for output.
Thank you for your response!
Hello all.
Is it better programming practice to
1) output the value of an expression a * b in a cout statement as a variable containing its value
total = a * b;
cout << total <<...
Thank you guys! I truly appreciate it! I resorted to writing untemplated code (templates weren't required, but they were encouraged). Unfortunately I wasn't able to grasp the concept fully in time.
That is actually the whole constructor for SearchTree.
LBTree is actually a typedef of a templated LBT class as follows:
typedef LinkedBinaryTree<LBTEntry> LBTree;
with
Hi all,
I'm implementing a linked BST to create a simple program to store, search, and retrieve records. Whenever I instantiate a new CityRecord object in my main function as follows:
...
I read up on it before the project, and I incorporated it into my program.
This was my first thought. I turned to c strings as a suggestion from the professor, though.
I was.
Hi,
I'm trying to store a tokenized cstring (consisting of a mathematical expression) into a templated char stack. However, when I print the contents of the stack, the char tokens that represented...
There you go, that's what I was looking for. Strings are null terminated! Thanks =))))
I just realized that one character can't be a string...thank you
Howdy! I am reviewing for my final and one of the questions states that
StrLen(c); is not a valid function call when
char c = 'c';
Can someone help me understand why?
Examples of...