What is this programming question asking for? (I don't understand what it wants)?

2015-04-25 6:28 pm
Write a function named liquid() that has an integer number parameter and
reference parameters named gallons, quarts, pints, and cups. The passed integer represents
the total number of cups, and the function is to determine the numbers of gallons, quarts,
pints, and cups in the passed value. Using the reference parameters, the function should alter
the arguments in the calling function. Use these relationships: 2 cups = 1 pint, 4 cups = 1 quart,
and 16 cups = 1 gallon.

回答 (2)

2015-04-25 8:30 pm
void liquid(int v,int & gallons, int & quarts, int & pints, int & cups){

// put your code here for determining how many quarts pints and cups
// fit into the volume v..

}
2015-04-25 6:58 pm
dank weed


收錄日期: 2021-04-21 23:22:01
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20150425102809AAf7w61

檢視 Wayback Machine 備份