题解列表
c++使用bool变量的简便方法
#includeusingnamespacestd;intmain(){inta;cin>>a;boolcon3=(a%3==0);\\bool变量与if-else语句搭配使用,bool已定义好,if-else语句书写量减少,
1066:自定义函数-x的n次幂/n!
解题思路:注意事项:参考代码:#includedoublemain(){doublefac(intn);doublemypow(floatx,intn);doublex,result,sum=0;intn,i;scanf("%lf%d",