题解 2837: 年龄与疾病

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

2837: 年龄与疾病(C语言)

摘要:解题思路:注意事项:1.%%打印百分号2.整形除整形会进行截断运算参考代码:#include<stdio.h>int main(void){ int n; scanf("%d", &n); int a……

年龄与疾病(C++代码)

摘要:参考代码:#include <iostream>#include <iomanip>using namespace std;int main() {    int n;    cin >> n;   ……

emm,感觉有点麻烦

摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){    int n;    float a,b,c,d;    a=0;b=0;c=0;d=0;    scan……

一维数组--4.年龄与疾病

摘要:注意事项: 记得把b,c,d,e初始化为0,不然结果会出现错误;参考代码:#include<stdio.h> int main() { int n,a[100]; int b=0,c=0,……

编写题解 2837: 年龄与疾病

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int jibing(int A[100],float n){ int i; float  w,x,y,z; for(i=0;i<n;……

C++:map容器简单使用方法_练习

摘要:解题思路:注意事项:某方面来说,map容器相当于数组,只不过数据类型多样化,而且需要用一个内存空间,就拿一个内存空间不够它元素的排列方式是按照下标的的大小来排列的参考代码:#include<io……