Hello everyone. I was able to fix my code thank you.
Type: Posts; User: meagangramlin
Hello everyone. I was able to fix my code thank you.
Hello. I am trying to read data from a file into 2 different arrays. I store the company name, symbol, and price into a class array named stocks. Then I store the frequency into and array name freq....
How silly of me I can't believe I missed that. Thank you
I did try this but it wouldn't work because the Stock object becomes a local variable in the while loop and I can't access it in the rest of the program.
Hello. I am trying to write the content of a class array to a file but I keep getting this error:
no operator "<<" mathces these operands.
This is where im getting the error:
#include...
Thank you so much I was able to insert correctly!! I guess I was just a bit off.
I am reading from a file the contains info on a stock's name, symbol, and price. For example, the first 6 lines of...
Hello. I am trying to insert a new item to a binary search tree but I can't get my code to work right. Here I am suppose to ask the user for the new class object's data and then store it in the...
Hello. I am trying to search for an element in a binary search tree using a class object but I cant get my code to work right. I have a class called Stock which has three private members: compName,...
This is my first program working with queues and I have no idea where to start. Fair warning this is a long program. My main question is with the functions in the main program near the bottom of this...
Ok so I updated my findStudent code to:
void findStudent(const LinkedList<Student> &list)
{
int id;
cout << "Please enter student ID number: ";
cin >> id;
I know I am not supposed to post my homework on here but I asked my teacher for help but she won't answer me. For this program I am not allowed to use vectors or std::
I have a function called...