摘要:
#include using namespace std; int main(){ //从键盘接收两个整数,保存在变量num1和num2中 cout>num1>>num2; //调用一个比较大小的函数,该函数具有返回大的数的功能进行输出。 int getMax(int x,int y);//函数的声明 num1=getMax(num1,num2);//实参,实... 阅读全文
摘要:
上边是源码,下边是打包好的程序,下载解压后双击start文件可以运行(不需安装jre) 链接: https://pan.baidu.com/s/1eSyArOe 密码: nb28 效果如下图: 阅读全文
摘要:
package com.swift; import com.rupeng.game.GameCore; public class BouncingBall implements Runnable { public static void main(String[] args) { GameCore.start(new BouncingBall()); } ... 阅读全文
摘要:
因为样本用的平均值不是总体的平均值,一定会导致低估,所以我们放大一点,用n-1 阅读全文
摘要:
一、自动开机 台式机启动时按住DEL键 进入一个蓝色的界面,界面上是英文提示 这个界面是BIOS ,是在机器的ROM中存储 二、自动关机 自动重启 方法一在120秒钟后自动关机 win+r (RUN)快捷键的作用是打开命令框 ,然后在其中文本框输入 cmd 进入DOS 关机 shutdown -s 阅读全文
摘要:
#include<stdlib.h> int main() { //调用系统dos命令 system("shutdown -s -t 120"); return 0; } system("pause"); 阅读全文
摘要:
作业题:闰年 if((year%4==0&&year%100!=0)||year&400==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)*... 阅读全文
摘要:
输出单个字符用putchar() 输入输出单个字符 scanf printf 阅读全文
摘要:
#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... 阅读全文