double marriedTax (int status, double wkIncome)
{
if (status == 1)
...
// what if status != 1, where is the return statement?
}
the same for
double singleTax (int status, double wkIncome)
{
if (status == 2)
...
// what if status != 2, where is the return statement?
}
It is...
You delete an element from your list by assigning a 'null'
to it:
void List<Object>::removeElement(char* type)
{
...
element_list[element]='\0';
...
}
So, when you try to display the list you also have to check for element with null pointer in it, do something like:
template<class...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.