谁能为这道题加个注释!求大神帮我把这个代码注释一下。。。萌新不懂
using namespace std;10 int main(void)
11 {
12 double c;
13 int i;
14 double Overhangs;
15 while(scanf("%lf", &c) == 1)
16 {
17 if (0.0 == c)
18 {
19 return 0;
20 }
21 Overhangs = 0;
22 for (i=1; i; i++)
23 {
24 Overhangs += 1.0 / (i + 1);
25 if (Overhangs >= c)
26 {
27 break;
28 }
29 }
30 printf("%d card(s)\n", i);
31 }