- 博客(16)
- 资源 (1)
- 收藏
- 关注
原创 VC.net 字符串转换成UTF-8形式
using namespace System;using namespace System::Text;void PrintCountsAndBytes( array^chars, Encoding^ enc );void PrintHexBytes( array^bytes );int main(){ // The characters to encode:
2009-03-24 00:55:00 1380
原创 求指定范围内的所有素数
/* Name: 求指定范围内的所有素数 Copyright: tonyee Author: tonyee Date: 20-03-09 18:50 Description: C++ 练习题 */#include using namespace std;class PRIMENUM { int data[25]; int
2009-03-20 20:28:00 1629
原创 超长数列中n个整数排序
/* Name: 超长数列中n个整数排序 Copyright: tonyee Author: tonyee Date: 20-03-09 18:50 Description: C++ 练习题 */#include using namespace std;class LIST{ int size; int *arr;
2009-03-20 19:55:00 586
原创 分数相加-
/* Name: 分数运算 Copyright: tonyee Author: tonyee Date: 19-03-09 22:23 Description: C++ 练习题 */#include #include using namespace std;// 分数相加类 class Fract{ int num;
2009-03-19 23:07:00 1616
原创 Game Lobby!
/*Name: Game LobbyCopyright: tonyeeAuthor: tonyeeDate: 15-03-09 20:44Description: code for study*/#include #include using namespace std;class Player{public: Player(con
2009-03-15 22:54:00 718
原创 电子宠物!(简单)
// critter caretaker#include using namespace std;class Critter{public: Critter(int hunger = 0, int boredom = 0); void Talk(); void Eat(int food = 4); void Play(int fun = 4);
2009-03-14 00:31:00 1459
原创 井字游戏 指针版
// 指针版// Tic-Tac-Toe 2.0// Plays the game of tic-tac-toe against a human opponent// Uses pointers instead of refernces for function parameters#include #include #include #include us
2009-03-12 23:59:00 449
原创 井字游戏!
// Tic-Tac-Toe// Plays the game of tic-tac-toe against a human opponent#include #include #include #include using namespace std;// global constantsconst char X = X;const char
2009-03-12 23:11:00 564
原创 Hangman!!!
// Hangman#include #include #include #include #include #include #include using namespace std;int main (){ // setup const int MAX_WRONG = 8; vector words; words.pus
2009-03-10 21:52:00 591
原创 Guess My Word
// Guess My Word#include #include #include #include using namespace std;int main (){ enum fields {WORD,HINT,NUM_FIELDS}; const int NUM_WORDS = 5; const string WORDS[NUM_WORDS
2009-03-09 23:11:00 623
原创 Guess My Number!!!
// Guess My Number#include #include #include using namespace std;int main (){ //int t = time(0); srand(time(0)); int theNumber = rand() % 100 + 1; int tries = 0,guess; /
2009-03-09 21:55:00 416
原创 单链表赋值,定位,添加,(C++ ) 简单实现 未整理
#include using namespace std;struct t_node{ int data; t_node *next;};class LINKNODE{ int n;// loop times t_node * nodea ;public: LINKNODE(int i) { n = i; }
2009-03-03 22:19:00 710
转载 C++ 一段代码仅供参考
#include #include #include #include using namespace std;int main(){ char isenter; int num = 0; int max = 0; cout << endl << "Enter the number of students: " ;
2009-03-01 22:30:00 528
转载 单向链表的插入、查找和遍历方法 (c)
单向链表的插入、查找和遍历方法 #include#include#define N 3int Link_Length = N; //记录链表的长度//定义结构体struct t_node{ int data; struct t_node *next;};定义别名typedef struct t_node Node;//定义链表变量
2009-03-01 22:25:00 2564
原创 单链表 赋值与显示 (类)
#include #include using namespace std;struct sLinkNode{ char data; sLinkNode* next;};class CLinkNode{ string str; sLinkNode *sln;public: CLinkNode(string s) { str
2009-03-01 19:20:00 2635
原创 C++ 单链表赋值与显示(过程式)
#include #include using namespace std;struct iLinkNode{ short int data; iLinkNode *next;};struct sLinkNode{ char data; sLinkNode* next;};int main(){ string s; //cin
2009-03-01 17:38:00 3491
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人