You are missing a close curly bracket (and have a spurious semicolon before
main
If you sort your indentation out, it becomes more obvious:
class Dist
{
int feet;
float inches;
public:
enter()
{
...
}
display()
{
...
}
scale(Dist &d1, float scalefactor)
{
...
while(d1.inches>=12)
{
...
}
}
main()
{
...
}
--- requires a close curly bracket here to end the class definition ---