搜索资源列表
用c编写的N*N的螺旋矩阵源代码
- /* 实现效果: 1 2 6 7 15 3 5 8 14 16 4 9 13 17 22 10 12 18 21 23 11 19 20 24 25 */ #include <stdio.h> #define N 5 //阶数,即N*N的螺旋矩阵 void main() { int i, j, num=1, a[N][N]; for(i=0; i<=N/2; i++) &nb
C++程序设计语言实验一
- 实验一:C++编程入门 1. 设计一个程序,其中实现两个函数,分别要求: 1. 解一元二次方程 求解一元二次方程Ax²+Bx+C=0的根。用户输入A、B、C的值,输出方程根x1和x2。(使用引用) 2. 求三角形面积 输入三角形的三边长a、b、c(边长可以是小数),求三角形面积area,并输出。如果输入的三边构不成三角形,应给出“data error”的信息提示。注:根据“海伦”公式,area*area=p(p-a)(p-b)(p-c),其中p=(a+b+c)/2。 2. 设计一
runge
- 数值逼近对于Runge函数f(x)= ,在[-1,1]上作等距节点插值,分别取n=4,n=8,n=12,插值的图像-Numerical approximation for the Runge function f (x) =, in [-1,1] on equidistant nodes for interpolation, respectively n = 4, n = 8, n = 12, the image interpolation
Circle
- 回形数组 1 2 3 4 12 13 14 5 11 16 15 6 10 9 8 7-Back-shaped array 1 2 3 412 13 14 511 16 15 610 9 8 7
4
- 某次考试有20个单项选择题,下面是这20个题的正确答: //* 1.B 2.D 3.A 4.A 5.C 6.A 7.B 8.A 9.C 10.D //* 11.B 12.C 13.D 14.A 15.D 16.C 17.C 18.B 19.D 20.A //* 采用数组存储上述20个标准答案,要求用户输入考生的答 //* 案,并采用另一个数组存储,程序显示该生是否通过考试, //* 并显示考生答错的题数和题号。-A second examination 20
12
- 1、课程管理 课程的录入,包括课程的编号、课程名、课程描述等; 课程的添加、修改、删除。 2、章节管理 章节的录入,包括章节的编号、章节名、章节所属的课程、章节描述等; 章节的添加、修改、删除。 3、题型管理 题型的录入,包括题型名,题型所属的课程; 题型的添加、修改、删除。 4、试题管理 试题的录入,包括试题的号,试题所属的课程的章节、题目、答案、试题描述等; 试题的添加、修改、删除。 5、试卷管理 试卷的录入,包括试卷号、试卷名、试卷标题、
12
- 用于实现二十四点,即任意输入四个数,程序会给出所有能计算出24的方法,是mathematica程序-Used to achieve 24 points, that is, the number of arbitrary input 4, the program will give all be able to calculate the 24 way is mathematica program
divide
- 大于1的正整数 n 都可以分解为 n = x1 * x2 * ... * xm 例如:当n=12时,共有8种不同的分解式: 12 = 12 12 = 6*2 12 = 4*3 12 = 3*4 12 = 3*2*2 12 = 2*6 12 = 2*3*2 12 = 2*2*3 对于给定正整数n,计算n共有多少种不同的分解式。-The positive integer n greater than 1 can be decomposed as n
jquery.timeentry.package-1.4.9
- 设置输入字段,以允许进入一个时间值。 可以通过键盘驱动或用鼠标。 接受时间通过键盘直接输入。 工作在12小时或24小时模式。 可以限制到最小和/或最大值的时间。 可以限制时间部分特定的倍数,例如只有四分之一小时。 -Set up input fields to allow the entry of a time value. Can be driven via the keyboard or with the mouse. Accepts direct time
zhengdi
- 整数因子分解问题: 大于1的正整数n可以分解为:n=x1*x2*…*xm。 例如,当n=12 时,共有8 种不同的分解式: 12=12; 12=6*2; 12=4*3; 12=3*4; 12=3*2*2; 12=2*6; 12=2*3*2; 12=2*2*3。 « 编程任务: 对于给定的正整数n,编程计算n共有多少种不同的分解式。-The positive integer n greater than 1 can be decompo
Spiral-square
- 一个高效的螺旋方阵输出程序,输入方阵的边长n,然后输出n*n的螺旋方阵 比如:n=4 输出为: 1 2 3 4 12 13 14 5 11 16 15 6 10 9 8 7-An efficient spiral square output program, enter the square side length n, then n* n helical output matrix For example: n = 4 The output is:
xuanzhuan
- 【问题描述】 输入一个自然数N(2≤N≤9),要求输出如下的魔方阵,即边长为N*N,元素取值为1至N*N,1在 左上角,呈顺时针方向依次放置各元素。 N=3时: 1 2 3 8 9 4 7 6 5 【输入形式】 从标准输入读取一个整数N。 【输出形式】 将结果输出到文件文件file.out。输出符合要求的方阵,每个数字占5个字符宽度,向右对齐,在每一行末均输出一个回车符。 【输入样例】 4 【输出样例】输出文件file.out
httpd-2.4.12.tar
- 基于C++的http服务器实现代码,开源框架-http server source code based on c++ programming language,It is a open source project.
video-js-4.12.11
- video和html5并用,有很好的效果。(Video and HTML5 are used together and have very good results)
12种游戏机模拟器源代码
- 包含1. infoNES模拟器源代码 2. GBA模拟器源码 3. 世嘉gens游戏模拟器源码 4. pse模拟器源码 5. gnuboy模拟器源码 6. ngc模拟器源码 7. raines模拟器源码 8. SNES模拟器源码 9. tgemu模拟器源码 10. GBC模拟器源码 11. virtual_gameboy模拟器源码 12. ZSNES模拟器源码(Contains 1. infoNES simulator source code 2. GBA simulat
acoustic forward - 4
- 二维声波方程正演模拟时间二阶,空间12阶交错网格正演模拟(Forward modeling of two-dimensional acoustic wave equation with time two order and space 12 order staggered grid forward modeling)
wallace and truncated 4 8 12
- wallace multiplier 4, 8,12 bits
2017-10-12大淘客淘口令
- 底部导航修改 修改路径:\main\m.php,23-27行。如下图 大淘客淘口令CMS【带底部导航版】+【首页中间菜单】源码使用教程 大淘客 第1张 大淘客淘口令CMS【带底部导航版】+【首页中间菜单】源码使用教程 大淘客 第2张 href=""是链接,src=""是图片路径 <span>*</span> *代表名字 首页中间菜单修改 修改路径:\main\m.php,7-16行。如下图
junit
- junit-4.12下载,JUnit是一个Java语言的单元测试框架。JUnit是一个开放源代码的Java测试框架,用于编写和运行可重复的测试。(Junit-4.12 is downloaded, and JUnit is a unit testing framework for the Java language. JUnit is an open source Java testing framework for writing and running repeatable tests.)
rtl8723bs-master
- This repository originally contained a vendor driver provided by Realtek: rtl8723BS_WiFi_linux_v4.3.5.5_12290.20140916_BTCOEX20140507-4E40 It was then tidied up and had huge chunks of unused code removed by a number of contributors (see the git hi