上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 39 下一页
摘要: #include using namespace std; int main(){ //从键盘接收两个整数,保存在变量num1和num2中 cout>num1>>num2; //调用一个比较大小的函数,该函数具有返回大的数的功能进行输出。 int getMax(int x,int y);//函数的声明 num1=getMax(num1,num2);//实参,实... 阅读全文
posted @ 2017-10-20 09:41 Advancing-Swift 阅读(1667) 评论(0) 推荐(0) 编辑
摘要: 上边是源码,下边是打包好的程序,下载解压后双击start文件可以运行(不需安装jre) 链接: https://pan.baidu.com/s/1eSyArOe 密码: nb28 效果如下图: 阅读全文
posted @ 2017-10-19 13:33 Advancing-Swift 阅读(635) 评论(0) 推荐(0) 编辑
摘要: package com.swift; import com.rupeng.game.GameCore; public class BouncingBall implements Runnable { public static void main(String[] args) { GameCore.start(new BouncingBall()); } ... 阅读全文
posted @ 2017-10-18 22:08 Advancing-Swift 阅读(1175) 评论(0) 推荐(0) 编辑
摘要: 因为样本用的平均值不是总体的平均值,一定会导致低估,所以我们放大一点,用n-1 阅读全文
posted @ 2017-10-17 17:39 Advancing-Swift 阅读(5361) 评论(0) 推荐(1) 编辑
摘要: 一、自动开机 台式机启动时按住DEL键 进入一个蓝色的界面,界面上是英文提示 这个界面是BIOS ,是在机器的ROM中存储 二、自动关机 自动重启 方法一在120秒钟后自动关机 win+r (RUN)快捷键的作用是打开命令框 ,然后在其中文本框输入 cmd 进入DOS 关机 shutdown -s 阅读全文
posted @ 2017-10-17 15:11 Advancing-Swift 阅读(471) 评论(0) 推荐(0) 编辑
摘要: #include<stdlib.h> int main() { //调用系统dos命令 system("shutdown -s -t 120"); return 0; } system("pause"); 阅读全文
posted @ 2017-10-17 12:19 Advancing-Swift 阅读(1909) 评论(0) 推荐(0) 编辑
摘要: 作业题:闰年 if((year%4==0&&year%100!=0)||year&400==0) 阅读全文
posted @ 2017-10-17 09:38 Advancing-Swift 阅读(1460) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; int main(){ double a,b,c; cout>a>>b>>c; if(a+b>c&&b+c>a&&c+a>b){ double s,area; s=(a+b+c)/2; area=sqrt(s*(s-a)*... 阅读全文
posted @ 2017-10-17 09:34 Advancing-Swift 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 输出单个字符用putchar() 输入输出单个字符 scanf printf 阅读全文
posted @ 2017-10-17 09:25 Advancing-Swift 阅读(2583) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; //保留2位小数 int main(){ double x=123.456; double y=3.14159; double z=-3214.67; cout<<setiosflags(ios::fixed)<<setiosflags(ios::right)<<setp... 阅读全文
posted @ 2017-10-17 09:04 Advancing-Swift 阅读(277) 评论(0) 推荐(0) 编辑
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 39 下一页