搜索资源列表
用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. 类模版。 2. 运算符重载。 3. 友元。 4. 继承。 二、实验题目 1, 设计一个类SavingsAccount,定义一个静态数据成员记录存款的年利率(rate),该类的每个成员都包含一个私有的数据成员balance,表示该成员当前的存款数额。提供一个成员函数CalMonthlyInterest(),用以计算月利息(用balance乘以rate再除以12),并将这个月利息加入balance中。提供一个静态成员函数ModifyRate(
svm_perf.tar.gz
- SVMstruct is a Support Vector Machine (SVM) algorithm for predicting multivariate or structured outputs. It performs supervised learning by approximating a mapping h: X --> Y using labeled training examples (x1,y1), ..., (xn,yn). Unlike regula
juanji
- 离散卷积计算 实验步骤: 主界面下进入实验五的“离散卷积计算”子实验, 输入有限长序列 x(n) 输入有限长序列 h(n) 鼠标单击确定按钮,以数值和图形两种方式显示卷积结果 -Discrete convolution calculation of the experimental steps: the main interface into the experiment five " convolution calculation of discrete&quo
Encoder264
- H.264图像编码程序对输入像素块X的整数DCT变换和量化-H.264 encoding process the input image pixel block X integer DCT transform and quantization
svm_perf
- SVMstruct is a Support Vector Machine (SVM) algorithm for predicting multivariate or structured outputs. It performs supervised learning by approximating a mapping h: X --> Y using labeled training examples (x1,y1), ..., (xn,yn). Unlike reg
lisanjuanjijisuan
- 离散卷积计算 实验步骤: 主界面下进入实验五的“离散卷积计算”子实验, 1) 输入有限长序列 x(n) 2) 输入有限长序列 h(n) 3) 鼠标单击确定按钮,以数值和图形两种方式显示卷积结果 4) 实验程序: -Discrete convolution calculation Experimental steps: Five main interface into the experiment a "discrete convolution
lsjjjs
- 离散卷积计算 实验步骤: 主界面下进入实验五的“离散卷积计算”子实验, 1) 输入有限长序列 x(n) 2) 输入有限长序列 h(n) 3) 鼠标单击确定按钮,以数值和图形两种方式显示卷积结果 4) 实验程序: -Discrete convolution calculation Experimental steps: Five main interface into the experiment a "discrete convolution
rossler
- 混沌工具function [x,y,z]=rossler(n,level,a,b,c,x0,y0,z0,h)-function [x,y,z]=rossler(n,level,a,b,c,x0,y0,z0,h)
surfature
- [K,H,P1,P2] = surfature(X,Y,Z) returns the gaussian curvature of a surface (K), mean curvature (H), and principal curvatures (P1,P2). The inputs (X,Y,Z) are 2D arrays corresponding to the surface being analyzed. Example [X,Y,Z] = peaks [K,
Cbingdu
- 1.在C、D、E盘和c:\windows\system、c:\windows中生成本病毒体文件 2.在C、D、E盘中生成自动运行文件 3.注册c:\windows\system\svchost.exe,使其开机自动运行 4.在C:\windows\system下生成隐蔽DLL文件 5.病毒在执行后具有相联复制能力 1.在所有磁盘的根目录生成svchost.com和autorun.inf文件 2.生成病毒体: c:\windows\wjview32.com c:\w
111
- 5. 定义一个函数long invers(long x),x为一个6位整数,函数功能是取x的高3位数(赋给h)和低3位各位数字(可从高位到低位依次存入变量a、b和c),将a、b和c逆序组合为一个整数t,计算h+t并将结果返回。-5. Define a function long invers (long x), x is a 6-bit integer, the function function is to take the high x 3 digits (assigned to h) an
rk
- rung-kutta 4 he inputs func, x0 and y0 define an IVP y = func(x,y), y(x0) = y0. This provides an approximation to y(x0:h:xn) using fourth-order Runge-Kutta method with step size h-rung-kutta 4 he inputs func, x0 and y0 define an IVP y = func
overfencing
- USACooverfencing 题解,描述 农夫John在外面的田野上搭建了一个巨大的用栅栏围成的迷宫。幸运的是,他在迷宫的边界上留出了两段栅栏作为迷宫的出口。更幸运的是,他所建造的迷宫是一个“完美的”迷宫:即你能从迷宫中的任意一点找到一条走出迷宫的路。给定迷宫的宽度W(1<=W<=38)及高度H(1<=H<=100)。 2*H+1行,每行2*W+1的字符以下面给出的格式表示一个迷宫。然后计算从迷宫中最“糟糕”的那一个点走出迷宫所需的步数(就是从最“糟糕”的一点,走出迷
sysconvert
- 进制间的转换,顶顶顶,大学期间的作品,经供参考-#include<stdio.h> #include<math.h> int main(){ int b,c,i,j int d[10000] char a[37]={ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , A , B , C , D , E , F , G , H , I , J , K , L , M , N , O , P , Q
1
- :构建一个圆类Circle,其成员为圆心的坐标(x,y)和圆半径r,并设计构造函数(可以赋初值也可以不赋初值),析构函数(可以什么都不做,只打印信息,表示其被调用),设置新值成员函数Set(), 取圆心坐标成员函数GetX()、GetY(),取圆半径成员函数GetR(),打印成员值成员函数Print(),计算圆面积成员函数Area()。并用此类定义长度为10的对象数组,每个对象的圆心的坐标(x,y)和圆半径r由随机数rand()产生,打印每个对象的(x,y)、r和面积;然后将对象数组按照其r值从
SatellitePhotographsT2
- 计算"*","."组成的方形中,四邻域"*"的最大面积-Farmer John purchased satellite photos of W x H pixels of his farm (1 <= W <= 80, 1 <= H <= 1000) and wishes to determine the largest contiguous (connected) pasture. Pastures are contiguous when any pair o
Desktop
- 1、 凯撒密码是一种古老的对称加密体制,它的基本思想是:通过把字母移动一定的位数来实现加密和解密。例如,如果密匙是把明文字母的位数向后移动三位,那么明文字母A就变成了密文的D,依次类推,得到明文字符集与密文字符集如下: 明码表:A B C D E F G H I J K L M N O P Q R S T U V W X Y Z密码表:D E F G H I J K L M N O P Q R S T U V W X Y Z A B C 由此可见,位数就是凯撒密码加密和解密的密钥。
Ps2sim_doc
- ^a 01h: sp01 F1 ^b 02h: sp02 F1 ^c 03h: sp03 F3 ^d 04h: sp04 F4 ^e 05h: sp05 F5 ^f 06h: sp06 F6 ^g 07h: sp07 F7 ^h 08h: sp16 BACKSPACE (directly accepted in VT) ^i 09h: sp35 TAB (accepted too) ^j 0Ah: sp08 F8 ^k 0Bh: sp
10.1007%2Fs11071-017-3899-x
- H无穷控制针对马尔科夫调变系统的非脆弱控制研究。(This paper gives attention to the issue of nonfragile state estimation for a class of Markov jump systems with repeated scalar nonlinearities and redundant channels.)