C++
IhaveGotYou
这个作者很懒,什么都没留下…
展开
-
洗牌、发牌过程模拟
/* 洗牌、发牌过程模拟 假设一副牌没有大小王,有四种花色,每一种有13张,轮流发牌.*/#include #include #include using namespace std;enum style {RedPeach=6,BlackPeach=3,Club=5,Pane=4};const char* Replace(char ch);struct Card{ char Val原创 2006-05-23 19:29:00 · 1458 阅读 · 0 评论 -
How to Use the Visual C++ DEBUGGER
Section FourHow to Use the Visual C++ DEBUGGERTable of ContentsPage1. When to Use the Debugger.................................. 12. Putting Developer Studio in翻译 2007-03-19 17:51:00 · 1290 阅读 · 0 评论 -
统计字符串中各个字符出现的次数
题目:编写一个算法程序frequency,统计在一个输入字符串中各个不同字符出现的频度。算法返回两个数组:A[]记录字符串中有多少种不同的字符,C[]记录没一种字符的出现次数。此外,还要返回不同字符数。 解答:构造hash表.#include #define MaxElement 255#define Len sizeof(str)-1using namespace std;int m原创 2007-01-25 23:07:00 · 3498 阅读 · 0 评论