日志
日志
NULL001100
量变引起质变
展开
-
codeblocks:error: in C++98 ‘xxx’ must be initialized by constructor, not by ‘{...}’
1.问题:在codeblocks 运行vetor时报错:error: in C++98 ‘num’ must be initialized by constructor, not by ‘{…}’原创 2020-07-01 23:13:20 · 8739 阅读 · 0 评论 -
3/9
while(n–):先判断n是不是0。如果n不为0,n减1,执行循环体。n的变化过程:n-1~0while(–n):n先减1,再判断n是不是0。如果n不为0,执行循环体。n的变化过程:n-1~1使用输入输出重定向...原创 2020-03-09 23:28:01 · 70 阅读 · 0 评论 -
3/7
控制输出位数 printf("%.af",x);a为小数点后所要求的位数pi的值引入:const double pi=acos(-1.0)正弦、余弦函数值:要用弧度制**题目:**正弦和余弦,要求输入整数值,然后输出正弦和余弦值。#include<stdio.h>#include<math.h>int main(){ const double pi=a...原创 2020-03-08 15:06:22 · 99 阅读 · 0 评论