1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
void outputCorrect() //0
{int countCorrect = 0; cout << "There are zero matching digits.\n" };
void outputCorrect(int zero) //1
{int countCorrect = 1; cout << "There are " << countCorrect << " matching digits, elements " << zero};
void outputCorrect(int zero, int one) //2
{int countCorrect = 2; cout << "There is " << countCorrect << " matching digit, element " << zero << ", " << one}
void outputCorrect(int zero, int one, int two) //3
{int countCorrect = 3; cout << "There are " << countCorrect << " matching digits, elements " << zero << ", " << one << ", " << two}
void outputCorrect(int zero, int one, int two, int three) //4
{int countCorrect = 4; cout << "There are " << countCorrect << " matching digits elements, " << zero << ", " << one << ", " << two << ", " << three}
void outputCorrect(int zero, int one, int two, int three, int four) //5
{int countCorrect = 5; cout << "There are " << countCorrect << " matching digits elements, " << zero << ", " << one << ", " << two << ", " << three << ", " << four}
|