Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - array class
Search - array class - List
DL : 0
自学JAVA不久,第一次自己编小程序。在家摸索了三天才完成。 * 对于如何选择合适类还没有经验,这里直接在JFrame上设计paint()方法将所有内容绘制。没有掌握面向对象编程还- -! * 建模上借鉴了小时候玩的那中手柄游戏,将主面板划分为12*20的小格;后来为了设计碰撞,又改为14*21,绘制部分仍为12*20。(两侧与底部为边界) * 这些格子的信息用一个二维数组存储,数组中每个元素用0,1来表示是否被绘制成黑色。paint()方法中将值为1的格子绘制成黑色,0的仍为白色。边界除外) -Soon, the first self-study JAVA own small programs. At home the three genius. * how to choose appropriate class haven t experience, here in JFrame directly on the paint () method to design all content. No master object-oriented programming still--! On a childhood* modeling in that play the game, will handle panel is divided into 12* 20 small lattice, Later in order to design, and 14* collision, drawing part for 21 December 20. And for the sides (bottom border) The information in the grid**** a 2d array stores, each element in the array is whether to use 0,1 drawn into black. Paint () method of value is 1, 0 draw black grid for white still. Boundary except)
Date : 2026-01-19 Size : 4kb User : 高兴

一个模拟扫雷游戏的vc编码程序编码思想: 通过几个数组设定好雷区的位置,自己造出几个视图类的成员函数,分析是是否有雷,以及雷的个数。-A simulated mine coding procedures vc game coding idea: set up a few array location of mined areas, few create their own view class member function, analysis is whether there is mine, and the number of mine.
Date : 2026-01-19 Size : 60kb User : 任柯

实现一个数组类模板,功能同std::vector-Achieve an array of class template function with std :: vector
Date : 2026-01-19 Size : 2kb User : k35679411aojin

简易二手车管理系统 可添加删除车辆、修改车辆具体信息(车型、厂家、型号、购入时间、购入价格、是否售出、售出价格)、将车辆信息保存到外部文档、从外部文档读取车辆信息-System Design Class car: includes car’s self-attributes, such as its number, logo, price.etc. Class DataStream: includes 2 methods, readData() and saveData() readData(): use DataInputStream get data “CarData.txt”, and then put data into class car’s object. saveData(): use Array store cars’ data their object, and use DataOutputStream to store data in “CarData.txt” Class AddAndDel: Includes 2 methods, addNewCar() and DelSoldCar() addNewCar(): read Child object of car, add a new object in the end. Scan its details. DelSoldCar(): scan the number of the sold car, mark it and scan its sale price and date of sale. Class Show: Includes 4 methods, showAll(), showOnList(), showOnListByDate() and showSold() showAll(): Traversing all child objects and print them on screen. showOnList():Traversing all child objects, recognize which have not been sold and print them on screen. showOnListByDate(): On basis of showOnList(), using Bubbling algorithm to sort dates
Date : 2026-01-19 Size : 183kb User : 徐之豪

小时候都玩过贪吃蛇这个经典的小游戏,在我们的普通手机里似乎都是必备的。它伴随着我们的童年,经历了好多好多时光。它带给我们了许多的乐趣。 学习了c++这门编程语言后,我就想着能不能把它做出来,在我查看了相关知识后,明白了其中的道理,就尝试着自己写出这个小游戏来,而且加入了许多可玩性的东西,包括等级选择,暂停/继续和分数制。整个程序采用了类和数组的相关知识实现。(When I was young, we played the classic game of snakes, which seemed to be necessary on our ordinary mobile phones. It has gone through many times with our childhood. It brings us a lot of fun. Learning the c++ programming language, I think it can be done, in my view the relevant knowledge, understand the truth, try to write this little game, but also added a lot of fun things, including the level of selection, and the fractional pause / continue. The whole program uses the knowledge of the class and array.)
Date : 2026-01-19 Size : 2kb User : feiguobiao
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.