登录
首页 » Visual C++ » tmp

tmp

于 2011-11-30 发布 文件大小:6KB
0 171
下载积分: 1 下载次数: 7

代码说明:

  编写一个模拟人工洗牌的程序,将洗好的牌分别发给四个人。 使用结构card 来描述一张牌,用随机函数来模拟人工洗牌的过程,最后将洗好的52张牌顺序分别发给四个人。 对每个人的牌要按桥牌的规则输出。即一个人的牌要先按牌的花色(顺序为梅花、方块、红心和黑桃)进行分类,同一类的牌要再按A、K、Q、J、…、3、2牌的大小顺序排列。另发牌应按四个人的顺序依次分发。(Write a simulation program manual shuffle, the cards were sent to wash a good four. Card use to describe the structure of a card, with the random function to simulate the manual process of shuffling, and finally wash the good order of 52 cards were issued to four people. Cards for each person according to the rules of bridge output. That is, a person' s license have to press the card suit (in order of clubs, diamonds, hearts and spades) classification, the same type of licenses to press A, K, Q, J, ..., 3,2 card the size of the order. The other four licensing the order should be distributed.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • guojimajiang
    网狐6603国际麻将,视频麻将,完美无错,值得拥有(Fox 6603 International Mahjong, Mahjong video, perfect no mistake, worth having)
    2013-11-28 13:56:34下载
    积分:1
  • wuziqi
    该工程是一个非常完整的,优化的五子棋源代码(VC),可以帮你学习路径选择算法和vc编程.(The project is a very complete, optimized Gobang source code (VC), can help you learn the path selection algorithm and programming vc.)
    2007-11-30 15:33:37下载
    积分:1
  • guojimajiang
    网狐6603国际麻将,视频麻将,完美无错,值得拥有(Fox 6603 International Mahjong, Mahjong video, perfect no mistake, worth having)
    2013-11-28 13:56:34下载
    积分:1
  • gobangCPP
    C++五子棋代码,有详细的算法注释,代AI算法...可直接运行(C++ gobang game code-with AI。it can work directly)
    2012-07-01 18:32:24下载
    积分:1
  • -the-poker-game
    本程序利用Card类数组模拟扑克牌,定义3个数组分别表示玩家手中的牌,电脑手中的牌和底牌,用srand((unsigned)time(NULL))产生随机数字,将底牌数组中随机的一项从底牌中移动到其他的数组中,模拟从洗好底牌中抓牌。表示出牌。 单人练习模式中,首先记下一个 1到13之间的随机数字,然后玩家抓牌,当手中的牌的点数恰与记下的随机数字相等,或用手中有的任意两张牌,通过加减乘除四则运算可以凑出该随机数字相等的点数,则停止抓牌并将这一张或两张出出去,随即记下一个新的随机数字,开始下一轮,直道手中的全部牌出完,游戏结束(This procedure using Card class array to simulate playing cards, the definition of the 3 arrays represent the game player cards, computer cards and cards, using srand ((unsigned) time (NULL)) to generate random numbers, random number in the array will be a move to the number of cards from other groups of cards, simulation from the wash hand in. Said. Single practice mode, first recorded random number between 1 to 13 next, and then the game player to draw cards, random number equal when the hand points exactly with the down, or in the hands of some arbitrary two cards, add, subtract, multiply and divide by four operations can make the random number equal points, then stop to draw a card and the card or two cards out, then write a new random number, start the next round, straight hands all the cards out, the end of the game)
    2013-08-19 15:13:48下载
    积分:1
  • LLK1.41_FullSources
    连连看.net代码。最新更新的,VS2005开发。(Lianliankan. Net code. The latest update, VS2005 development.)
    2008-04-18 09:28:04下载
    积分:1
  • Fivechess
    实现简单的五指棋的功能 ,还有背景的音乐MPE3播放器(Implement a simple function of five fingers move, there is background music MPE3 player)
    2013-03-05 16:33:05下载
    积分:1
  • Chess_Easy
    基于Visual C++实现的局域网象棋游戏,Socket通信,多线程。(design the chess game by use Visual C++ , Socket technology, Mutil Thread.)
    2013-09-17 19:04:26下载
    积分:1
  • five
    五子棋的小程序,考虑了先手双三禁手的情况可以人和电脑,人和人,步数有统计,开始可以选择白旗或者黑棋(Gobang a small program, taking into account firstly the three pairs of hands can be cut and the computer, and the people, a few steps there are statistics, can choose to start a white flag or Black)
    2010-02-02 11:23:10下载
    积分:1
  • MFC-game-example
    说明:  [趣味程序导学Visual.Cpp].董未名.文字版MFC,全是游戏实例([gout program guiding Visual. Cpp]. Tung. Text version MFC weiming,All game example)
    2011-04-03 00:48:48下载
    积分:1
  • 696518资源总数
  • 104349会员总数
  • 32今日下载