找回密码
 立即注册
the程序javato | 百货/超市行业 2022-09-22 186 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
这篇文章为自创,转发请注明出处。
步行全G(hiker2008.blog.cto)
初学java,编写了一个计算24点游戏的程序,希望得到各位大侠的指导,共同提升。
小时候用扑克玩,如今懒了,改用计算机算,呵呵。
运行方法:javaCal24abcd
其中abcd为4个1-9的自然数。
输出为通过加减乘除运算后等24的算式及个数。
算法不杂乱,就不写出来。
详细可以看程序,重要的地方我都加注释了。

(This article is self-created, please indicate the source if forwarding.
Walk the whole country (hiker2008.blog.cto)
Beginning to learn java, I wrote a program to calculate the 24-point game. I hope to get the guidance of all heroes to improve together.
I used to play poker when I was a child, but now I'm lazy and use a computer to calculate, huh, huh.
Run method: javaCal24abcd
where abcd is 4 natural numbers from 1 to 9.
The output is the formula and the number of 24 after addition, subtraction, multiplication and division.
If the algorithm is not messy, it will not be written.
You can see the program for details, and I have added comments to the important places.)

[下载]21420188689.rar




上一篇:《JAVA学习笔记》
下一篇:[原创]使用java编写计算24点游戏程序(附java源代码)