All pastes #955950 Raw Edit

dennis

public text v1 · immutable
#955950 ·published 2008-03-24 22:52 UTC
rendered paste body
string 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);
}