Code:
#include <iostream>
using namespace std;

class Waterbottle
{
   public:
    string Brand;
    float height;
    int WaterLevelPercent;

    void Waterbottle::DrinksWater(Waterbottle *bottle)
    {
        bottle->WaterLevelPercent= bottle->WaterLevelPercent - 1;
    }
};

int main()
{
    Waterbottle *ptrBottle;
    ptrBottle = new Waterbottle;

    ptrBottle->WaterLevelPercent = 100;
    DrinksWater(ptrBottle);

    cout << DrinksWater->WaterLevelPercent << endl;

    return 0;
}
i tried making this to implement my skills with classes but, i get a error where it says that DrinksWater is not declared but, i declared it as a member function in the class definition