自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 未重构的 魔兽世界终极版

#include #include #include #include #include #include #include using namespace std; class Headquarter; class Iceman; class Warrior; class Ninja; class Wolf; class Lion; class Dragon; class Weap

2012-04-22 17:07:53 3614 1

原创 PKU-程序设计实习-Myistream_iterator

#include #include #include using namespace std; template class CMyistream_iterator { public: CMyistream_iterator(istream& istrm_): istrm(istrm_) { istrm >> val; }; void operator ++ (int) {

2012-04-22 17:06:17 1394

原创 PKU-程序设计实习-MySort函数

#include #include #include using namespace std; void mysort(void* inputArray, const int nInput, const int dataSize, int cmpFunc(const void* elem1, const void* elem2)) { char* input = (char*)input

2012-04-22 17:04:48 1171

原创 10000以内的阶乘

#include #include #include using namespace std; /* 算法很水的,不过改良方向大概就是每四位算一个之类的东西了。。参考麦森数 */ int getWeishu(int n) { double weishu = 0; for(int i = 2; i <= n; i++) { weishu += log10

2012-04-03 16:27:23 499

原创 八皇后问题

#include using namespace std; int line[9] = {1}; int Left[16] = {1}; int Right[16] = {1}; int board[9][9] = {0}; int num = 0; void print() { cout << "No. " << num << endl; for(int i = 1; i

2012-04-03 16:26:18 453

原创 钉子和小球

#include #include using namespace std; char graph[60][60] ; long long result[60][60] ; long long gcd( long long a ,long long b ) { if(b == 0) return a ; else retu

2012-04-03 16:25:30 628 3

原创 字符环

#include #include using namespace std; int getMaxCycle(string& s1, string& s2) { int max = 0; for(int i = 0; i < s1.length() / 2; i++) { for(int j = 1; j <= s1.length() / 2 + 1;

2012-04-03 16:25:00 1750

原创 显示器

#include #include #include using namespace std; char map[10][16] = { " - | | | | - ", " | | ", " - | - | - ", " - | - | - ", " | | - | ", " - | -

2012-04-03 16:24:05 493

原创 统计单词数

#include #include #include #include #include #include using namespace std; /* 耗时什么的,完全不在乎了,已经被搞吐了 */ void stolower(string& str) { for(int i = 0; i < str.size(); i++) if(isalpha(str[i

2012-04-03 16:20:17 529

原创 GPA排名系统

#include #include using namespace std; int main() { int m, n; char lesson[22][22]; scanf("%d%d", &m, &n); for(int i = 0; i < n; i++) { scanf("%s", lesson[i]); }

2012-04-03 16:18:48 1016

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除