the Error reads:
error C2440: '=' : cannot convert from 'int' to 'tasks'
it is on line 105.
Main Topics
Browse All TopicsI have a program that is due tonight and I am stuck. Can someone take a look at this code and tell me, where I am lost. I have set that all the data from the file that is read is stored in an array and I have a struct for that array. I just cannot seem to figure out how to get it to work. I have one error and I am lost. I will attach the code, assignment and sample.txt file for you to look at.
In short the program is suppose to read the file look at the first string and decide if it needs to be added to the heap or taken off the heap, the second is an interger(priority) and the last is a string that is the "program."
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
In the expand heap function you allocate a bigger array, and then copy across the elements from the old, smaller, array. This is the central line (with the error):
newstore[i] = h->store[i].priority;
newstore is declared as "struct tasks *". So the left of the assignment is a "struct task". But h->store[i].priority is an integer. I'm guessing the intent is to copy the whole task that store is pointing to. So the right should be a "struct task" as well. In which case the line should probably be:
newstore[i] = h->store[i];
Wasn't that error already fixed here ?
http://www.experts-exchang
Business Accounts
Answer for Membership
by: Infinity08Posted on 2008-12-05 at 08:22:03ID: 23106050
>> I have one error
What is that error ?