rendered paste bodystring ArrayMaster::returnBoxContents(bool detailed, int menuChoice, bool all){
stringstream itemInformation;
do{
if ((pitem[menuChoice]!=NULL) && ((menuChoice>(-1)) && (menuChoice<returnCapacity()-1))){//remove
itemInformation <<"\nItem Number: "<<menuChoice<<endl; //this now
itemInformation <<"Catagory: "<<(*pitem)[menuChoice].getcatagory()<<endl;//
if (detailed == true){
itemInformation <<"Description: "<<(*pitem)[menuChoice].getdescription()<<endl;
itemInformation <<"Priority: "<<(*pitem)[menuChoice].getpriority()<<endl;
}
return itemInformation.str();
}
else{ itemInformation <<"\nItem "<<menuChoice<<" is blank!"<<endl;
}
menuChoice+=1;
if (menuChoice==returnCapacity()){
all=0;
}
}while (all==1);
}