搜索资源列表
用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
经过扩展的CGraph类及示例工程源代码
- 作者将一个CGraph类由像素模式下,扩展到逻辑模式下,并加了x,y轴的箭头,可以添加曲线名称。使用的方法: 复制Graph.h,Graph.cpp GraphLegend.cpp.GraphLegend.h GraphSeries.cpp,GraphSeries.h六个文件到相应的目录下,然后把他们加入到工程中,修改相应的头文件。在示例工程中作者提供了绘制饼图和直方图的代码。-CGraph author of a category by the pixel mode, the logica
Data4final
- 移位密码、代换密码的加密及解密 实现移位密码:k表示26个字母向前循环位移的字符个数 加密: 输入:k,以及小写表示的明文字母,输出:大写字母表示的密文 解密:输入: k,以及大写字母表示的密文,输出:小写字母表示的明文 例如,当k=11时 明文:wewillmeetatmidnight 密文:HPHTWWXPPELEXTOYTRSE 实现代换密码 例如输入密匙guangzhouuniversity,则建立字母对应关系: a b c d e f g
234156789097
- 商业单位需要容易记忆的电话号码,有一些方法可以让电话号码变得更容易记忆。譬如,可以把电话号码写成单词或短语,如 TUT-GLOP 可以代表滑铁卢大学的电话。有时仅仅是把号码的一部分写成单词,如打 310-GINO 便可向 GINO 比萨饼店定购比萨。另一种让电话号码容易记忆的方法是将数字用一种容易记的方式组合起来,譬如 3-10-10-10 也可以代表 GINO 比萨饼店。 电话号码的标准形式是七位十进制数字,在它的第三位和第四位之间用连字符连接(例如:888-1200)。电话的键盘提
quadprog
- function [X,fval,exitflag,output,lambda]=quadprog(H,f,A,B,Aeq,Beq,lb,ub,X0,options,varargin) % X=QUADPROG(H,f,A,b) 求解二次规划: % min 0.5*x *H*x + f *x subject to: A*x <= b %x=quadprog(H,f, A, b, Aeq, beq)求解二次规划:-function [X, fval, exitflag, out
newoula-C
- * 用改进的欧拉方法求解初值问题,其中一阶微分方程未y =f(x,y) * 初始条件为x=x[0]时,y=y[0]. * 输入: f--函数f(x,y)的指针 * x--自变量离散值数组(其中x[0]为初始条件) * y--对应于自变量离散值的函数值数组(其中y[0]为初始条件) * h--计算步长 * n--步数 * 输出: x为说求解的自变量离散值数组 * y为所求解对应于自变量离散值的函数值数组 -* Improved Euler me
dsphomework1
- 数字信号处理的应用之一是从含有加性噪声的信号中去除噪声。现有被噪声污染的信号x[k]=s[k]+d[k],式中: 为原始信号d[k]为均匀分布的白噪声。 (1)分别产生50点的序列s[k]和白噪声序列d[k],将二者叠加生成x[k],并在同一张图上绘出x0[k],d[k]和x[k]的序列波形。 (2)均值滤波可以有效去除叠加在低频信号上的噪声。已知3点滑动平均数字滤波器的单位脉冲响应为h[k]=[1,1,1 k=0,1,2],计算y[k]=x[k]*h[k],在同一张图上绘出前50点y[
p111111
- 产生一个函数的128个q15数据并把它写在一个x.h的文件里面供dsp读取用-have a function in 128 q15 data and write it on a paper inside the x.h for dsp Reading access
E22_0230
- 一:需求分析 1. 问题描述 魔王总是使用自己的一种非常精练而抽象的语言讲话,没人能听懂,但他的语言是可逐步解释成人能听懂的语言,因为他的语言是由以下两种形式的规则由人的语言逐步抽象上去的: ----------------------------------------------------------- (1) a---> (B1)(B2)....(Bm) (2)[(op1)(p2)...(pn)]---->[o(pn)][o(p(n-1))].....[o
4
- 学会对文件的记录锁定,及解锁。#include <stdio.h> #include <unistd.h> #include <fcntl.h> int main() { int fd int i struct { char name[20] uint ID int age } myrec fd =open(\"name\", O_RDWR|O_CREAT, 0755)
spatial4
- 此种模型绘制类似米字形的网格。由于整个过程递归调用绘图函数,所以可以根据误差判断绘制DEM的精细程度,从而绘制出不同精细程度的DEM,为解决漫游中数据量较大而引起的画面不流畅现象提供了模型基础。 本文并没有对LOD作研究,只是给出了四叉树的建立和遍历绘图的方法。 #include \"Pt3d.h\" //空间点类(主要记录空间点的x,y,z)
mpeg4ip-1.6.tar.gz
- Windows,Linux,Mac OS X平台下的音视频流的传输播放系统,支持MPEG4/H.261/MPEG2/H.263 MP3/AAC/AMR等不同编码格式,Windows, Linux, Mac OS X platform audio and video stream broadcast transmission systems to support MPEG4/H.261/MPEG2/H.263 MP3/AAC/AMR different encoding format, etc.
x264decoder
- Special to decoder for x.264, it s not encoder. Build no error and warning build in VC6.0 preinstall vc6sp5 and nasm.exe in vc6 bin directory msn:fatalfeel@hotmail.com-Special to decoder for x.264, it s not encoder. Build no error and warningbu
Encoder264
- H.264图像编码程序对输入像素块X的整数DCT变换和量化-H.264 encoding process the input image pixel block X integer DCT transform and quantization
hid_mouse
- 一個檢視HID mouse的源碼 , 用來獲取Button 與 X/Y event的一個範例-HID mouse a view of the source code, used to obtain Button and the X/Y event of an example
1602_Diver
- #include<reg51.h> #include<intrins.h> #define uchar unsigned char #define uint unsigned int #define busy 0x80 #define DATAPORT P1 //数据端口 sbit RS=P3^5 sbit RW=P3^6 sbit ENABLE=P3^7 code char example[]="Waitting for yo
testDiretctX
- 浏览D3D模型工具,仅支持 把.x文件拖拉至窗口即可浏览 -A tool of View D3D Model, suport only drag the Model into the windows, that s all.
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
59761con-without-fnct
- A GENERALAZED CONVOLUTION COMPUTING CODE IN MATLAB WITHOUT USING MATLAB BUILTIN FUNCTION conv(x,h)
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.)