下面的 C++ 代码用于计算经过 n 秒后的秒针位置(0 ~ 59),两处横线处分别应填入的代码是( )。
int start, n, pos;
cout << "当前秒数 (0-59) : ";
cin >> start;
cout << "经过多少秒: ";
cin >> n;
pos = ______; // L1
if (______) // L2
cout << n << "秒后回到12点方向" << endl;
else
cout << n << "秒后指向" << pos << "秒刻度" << endl;
- A.
(start + n) / 60和pos == 0 - B.
(start + n) % 60和pos == 0 - C.
(start + n) / 60和pos <= 0 - D.
(start + n) % 60和pos = 0