结合楼主:
啥叫驱动程序
设计函数min(x,y),返回两个double数值中较小的数值,同时用一个简单的驱动程序测试该函数。这里的驱动程序是什么?怎么写?书上说是测试该函数的程序??这啥意思?怎么测试法?
这个驱动应该和下面这个题目中的驱动程序是一个意思:
Write a precursor to a menu-
driven program.The program should display a menu
offering four choices, each labeled with a letter. If the user responds with a letter
other than one of the four valid choices, the program should prompt the user to
enter a valid response until the user complies.Then the program should use a
switch to select a simple action based on the user’s selection.A program run could
look something like this:
结论就是:测试一个函数能否达到期望值的程序