最新回答 / 慕瓜4006302
看懂了你提出的问题,你是想说第一次循环结束后输出sum=3,然后后面并没有指令让他继续做循环是吧?这个我感觉应该是while循环本身就带有这种功能,我是这么理解的,就是要达到sum>100这个条件,跳出循环,然后才能结束并输出吧,不知道这种解释对不对呢,还在学习中。
2017-08-20
最新回答 / 慕运维0596723
是由getPeachNumber(n+1)=(getPeachNumber(n)-getPeachNumber(n)/2+1),换算过来的,其中,num=getPeachNumber(n);
2017-08-20
最赞回答 / 成蔚
s2[]="我爱,"字符串长度为3,字符串数组长度为4s3[]="慕课网"字符串长度为3,字符串数组长度为4s2 接不上 s3 因为s2没有足够的空间来容纳要复制的字符串把 char s2[ ]="我爱," 改为 s2[ n ]=“我爱,”其中n至少大于等于7你可以试试n=6 很有趣的噢
2017-08-19
最新回答 / 你猜37
虽然也会显示“hello world”但运行之后会出现这个东西stack around the variable “xx” was corrupted字符越界
2017-08-19
最新回答 / 没刘海的单马尾丶
#include <stdio.h>int main(){ int age,height; float weight; char isfat; age = 15; height = 162; weight = 82.5; isfat = 'y'; printf("年龄:%d 岁\n", age); printf("身高:%d CM\...
2017-08-18