程序填空题:求S的值
根据下式计算s的值, 要求精确到最后一项的绝对值小于$$10^{-5}$$。请填空。

```c++
#include
#include
int main(void) {
double s, w = 1, f = 1;
int i = 2;
@@[s = 1](2);
while (fabs(w) >= 1e-5) {
f = -f;
w = f * i / @@[(pow(2, i) - 1)](2);
s += w;
i++;
}
printf("s=%f\n", s);
return 0;
}
```
答案:
第1空:s = 1
第2空:(pow(2, i) - 1)

```c++
#include
#include
int main(void) {
double s, w = 1, f = 1;
int i = 2;
@@[s = 1](2);
while (fabs(w) >= 1e-5) {
f = -f;
w = f * i / @@[(pow(2, i) - 1)](2);
s += w;
i++;
}
printf("s=%f\n", s);
return 0;
}
```
答案:
第1空:s = 1
第2空:(pow(2, i) - 1)