一、画布类和小球类 代码: #include <iostream> #include "canvas.h" #include "Ball.h" int main() { Canvas canvas; Ball ball1(10,10); system("pause"); ball1.left(5); ...
分类:
其他好文 时间:
2019-04-24 00:13:22
阅读次数:
136
part1 Part2 #include <iostream> #include "graph.h" using namespace std; int main() { Graph graph1('*', 5); graph1.draw(); system("pause"); Graph graph ...
分类:
其他好文 时间:
2019-04-23 23:55:45
阅读次数:
276
实验名称: xl命令的常见子命令以及操作 实验环境: 这里我们需要正常安装一台虚拟机,如下图: 我们这里以一台busybox为例,来进行这些简单的常见的操作; 实验要求: 这里我们准备了5个常见操作: 1、暂停/运行虚拟机--pause/unpause 2、快照/恢复快照--save/restore ...
分类:
其他好文 时间:
2019-04-23 09:51:49
阅读次数:
203
题目:输入一个整数数组,实现一个函数,来调整该数组中数字的顺序使得数组中所有的奇数位于数组的前半部分,所有偶数位于数组的后半部分。#define_CRT_SECURE_NO_WARNINGS1#include<stdio.h>#include<stdlib.h>Fun(intarr,intlen){intp=arr;intq=arr+len-1;inttmp=0;while
分类:
编程语言 时间:
2019-04-22 14:02:22
阅读次数:
164
https://www.jianshu.com/p/efc32cb3ba9f 一般我们的解决办法是在最后加上pause命令让它暂停执行以达到不退出的目的; 进一步,如果我们还有需求,在得到结果后继续输入命令,比如停掉 nginx,pause 命令就不行了。 ...
分类:
其他好文 时间:
2019-04-22 12:22:21
阅读次数:
200
part 2 #include <iostream> #include "graph.h" using namespace std; int main() { Graph graph1('*',5); graph1.draw(); system("pause"); system("cls"); Gr ...
分类:
其他好文 时间:
2019-04-21 14:27:29
阅读次数:
111
在做这道题时首先要观察杨辉三角的规律111121133114341……可以看出1.每行的数字个数与所处行数相等2.除去每行第一个和最后一个数字唯一,其他数字都等于头顶元素加头顶前一个元素源代码:#include<stdio.h>#include<stdlib.h>voidPrintY(intlength,intarray[][100]){inti,m;for(i=0;i&l
分类:
编程语言 时间:
2019-04-21 11:35:06
阅读次数:
204
Part2 绘制图形 #include <iostream> #include "graph.h" using namespace std; int main() { Graph graph1('*',5); graph1.draw(); system("pause"); system("cls") ...
分类:
其他好文 时间:
2019-04-21 10:15:23
阅读次数:
131
关于函数调用我想说,很多函数都是需要相应的头文件,例如pow函数就需要调用头文件math.h,pow的用法是计算一个双浮点型数的n次方,例如要计算3的立方则可以表示为pow(3,3)。此处需要注意的是,pow函数所计算的数字必须是双浮点型的,在定义数时应注意类型为double,又例函数system(“pause”),它的作用是让系统来暂停程序的进程,这是一个系统命令,调用系统命令时应使用头文件st
分类:
其他好文 时间:
2019-04-21 09:31:01
阅读次数:
148
@echo off setlocal enabledelayedexpansion for %%x in (*) do ( set /a sum+=1 echo %%x ) pause ...
分类:
其他好文 时间:
2019-04-18 09:14:09
阅读次数:
126