int main(int argc, char const *argv[])
{
	ExerciseMachine m;

	cout << m.getPercentages("00:14:10") << endl;
	return 0;
}
예제 #2
0
// BEGIN CUT HERE
int main( int argc, char* argv[] ) {
    {
        ExerciseMachine theObject;
        eq(0, theObject.getPercentages("00:30:00"),99);
    }
    {
        ExerciseMachine theObject;
        eq(1, theObject.getPercentages("00:28:00"),19);
    }
    {
        ExerciseMachine theObject;
        eq(2, theObject.getPercentages("23:59:59"),0);
    }
    {
        ExerciseMachine theObject;
        eq(3, theObject.getPercentages("00:14:10"),49);
    }
    {
        ExerciseMachine theObject;
        eq(4, theObject.getPercentages("00:19:16"),3);
    }
    {
        ExerciseMachine theObject;
        eq(5, theObject.getPercentages("00:28:00"),19);
    }
    {
        ExerciseMachine theObject;
        eq(6, theObject.getPercentages("19:43:36"),3);
    }
}