#include using namespace std; class aspl { public: aspl(float p){price=p;TotalPrice=p+TotalPrice;} ~aspl(){TotalPrice=TotalPrice-price;} static float get(){return TotalPrice;} private: float price; static float TotalPrice; }; float aspl::TotalPrice=0; int main() { float f; cout<<"阿司匹林的库存总价格为:"; cout<>f; aspl*p[5]; p[i]=new aspl(f); cout<<"阿司匹林的库存总价格为:"; cout<>f; p[i]=new aspl(f); cout<<"阿司匹林的库存总价格为:"; cout<>i; delete p[i]; cout<<"阿司匹林的库存总价格为:"; cout<