C++ primer 练习4.11 答案
#include<iostream>
using namespace std;
//测试函数;
void test(int a, int b, int c, int d)
{
if ((c > d) && (b > c) && (a > b))
cout << "Succeeded!" << endl;
else
cout << "Faied." << endl;
}
int main()
{
//测试用例;
test(4, 3, 2, 1);
test(4, 2, 3, 1);
return 0;
}