CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - Unknown
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - Unknown - List
[
Other Games
]
autosweepersaolei
DL : 0
本程序的算法没有采用匹配模式,基本上可以完成大多数情况的高级扫雷(初级和中级布局情况过于简单,不值得讨论),但是还有进一步改进的地方,例如下面的情况: ??....1. ??..@**. ??B3*2.. ??B.*... ........ “*”:表示未知区域,“.”:表示该区域周围没有雷,“B”:表示已经标识是雷-the procedures adopted without matching algorithm model basically completed most of the senior mine (primary and secondary distribution of too simple and not worthy of discussion). However, there are further areas of improvement, such as the following : .... 1. B3 .. @**.* B. .. 2 ........*... "*" : ,".": said unknown region around the region said no mines, "B" : said that they had been marking is mine
Date
: 2025-12-29
Size
: 125kb
User
:
简其平
[
Other Games
]
HTlauncher
DL : 0
不知名的韩国网游,好像少了引擎部份的代码!但是对学习仍有帮助!大家看看吧!-Unknown Korean online games, as part of a small engine code! But learning still help! We look at it!
Date
: 2025-12-29
Size
: 2.44mb
User
:
zhanghao
[
Other Games
]
GL_MASE
DL : 0
3D迷宫--本款游戏为3D迷宫寻宝,在未知的道路上摸索前进,前方路的新奇与担忧,给玩家带来无限的希冀与真实-3D maze- this game is the 3D labyrinth treasure hunt to find their way in the unknown road, in front of the road novel and concerns, to bring players unlimited hope and real
Date
: 2025-12-29
Size
: 2.18mb
User
:
李敏
[
Other Games
]
juzhenxiangcheng
DL : 0
编写程序,可以实现m*n矩阵和n*p矩阵相乘。m,n,p均小于10,矩阵元素为整数。 分析: 首先我们可以根据题意写出函数头。可以定为void MatrixMutiply(int m,int n,int p,long lMatrix1[MAX][MAX],long lMatrix2[MAX][MAX],long lMatrixResult[MAX][MAX]),其中lMatrix1和lMatrix2分别是输入的m*n矩阵和n*p矩阵,lMatrixResult是输出的m*p矩阵。 因为m,n和p都是未知量,要进行处理的矩阵大小是变量。但我们可以定义比较大的二维数组,只使用其中的部分数组元素。 矩阵相乘的算法比较简单,输入一个m*n矩阵和一个n*p矩阵,结果必然是m*p矩阵,有m*p个元素,每个元素都需要计算,可以使用m*p嵌套循环进行计算。 根据矩阵乘法公式: 可以用循环直接套用上面的公式计算每个元素。嵌套循环内部进行累加前,一定要注意对累加变量进行清零。-Write a program, you can achieve the m* n matrix and n* p matrix multiplied. m, n, p are less than 10, the matrix elements are integers. Analysis: First of all, we can write the function header according to the meaning of the questions. As void MatrixMutiply (int m, int n, int p, long lMatrix1 [MAX] [MAX], long lMatrix2 [MAX] [MAX], long lMatrixResult [MAX] [MAX]) of which lMatrix1 and lMatrix2, are input m* N matrix and n* p matrix, lMatrixResult is the output of m* p matrix. M, n and p are unknown quantity, the size of the matrix to be processed is variable. However, we can define a large two-dimensional arrays, which use only part of the array elements. M* p nested relatively simple matrix multiplication algorithm, the input of an m* n matrix, and an n* p matrix, the inevitable result is a matrix of m* p, there are m* p elements, each element needs to be calculated and can be used loop calculation. Matrix multiplication formula: cycle directly apply the above formula to calculate ea
Date
: 2025-12-29
Size
: 11kb
User
:
郑雯雯
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.