数据定义: 1 /* 2 * 枚举类型定义 NO -> 没有线索化 YES -> 线索化了的 3 */ 4 enum Thread { NO, YES } 5 6 /* 7 * 线索二叉树的结点类型定义 8 */ 9 struct Node10 {11 Element...
分类:
其他好文 时间:
2014-07-19 14:32:38
阅读次数:
215
一个简单的单词翻译的题,我是使用字典序做的;
由于输入的问题 ,,WA,WA,,,
都是泪;#include
#include
#include
using namespace std;
struct node{
int chile[26];
bool qq;
char uu[11];
node()
{
qq=0;...
分类:
其他好文 时间:
2014-07-19 12:08:48
阅读次数:
171
Description 请计算C[k]=sigma(a[i]*b[i-k]) 其中 k 11 #include12 const double PI=3.14159265359;13 struct P{double x,y;};14 P operator+(const P&a,const P&b){....
分类:
其他好文 时间:
2014-07-19 11:27:07
阅读次数:
178
结点类型定义: 1 /* 2 * 结点类型 3 */ 4 enum NodeType { head, atom, sublist }; 5 6 /* 7 * 定义广义表的结点结构(注意union的使用) 8 */ 9 struct Node10 {11 Boolean flag;...
分类:
其他好文 时间:
2014-07-19 09:16:35
阅读次数:
257
HDU1754 1 #include 2 3 using namespace std; 4 5 const int MaxSIZE = 2e6 + 10; 6 7 typedef struct { 8 int Max ; 9 int left, right ...
分类:
其他好文 时间:
2014-07-19 09:14:48
阅读次数:
250
1 struct Thread0_Mail 2 { 3 int a; 4 int b; 5 }; 6 7 osMailQId thread0_mail; 8 osMailQDef( thread0_mail, 10, struct Thread0_Mail ); 9 10 struct ...
分类:
其他好文 时间:
2014-07-19 09:03:28
阅读次数:
1090
用到tire树;
基础应用
这里讲的挺详细的 点击打开链接
#include
#include
#include
#define max 20
using namespace std;
char w[6];
struct node{
bool a;
int chile[26];
int q;//前缀
node(){
q=false;...
分类:
其他好文 时间:
2014-07-19 08:26:00
阅读次数:
181
结构体定义没搞明白,一直WA,终于AC了,真是高兴呀
代码如下:
#include
#include
#include
struct student
{
char id[30];
int score;
}person[1001];
int cmp(const void *a,const void *b)
{
struct student *aa=(struct studen...
分类:
其他好文 时间:
2014-07-19 08:15:25
阅读次数:
194
/*
c++ static变量,全局变量,局部变量
*/
#include
using namespace std;
static int x=1;
static int y=2;
struct A
{
static int x;
static int y;
};
int A::x=3;
int A::y= x;//3
//int A::y= ::x; //1
int mai...
分类:
其他好文 时间:
2014-07-19 02:48:26
阅读次数:
208
/*
ID: lucien23
PROG: frac1
LANG: C++
*/
#include
#include
#include
#include
using namespace std;
typedef struct Fraction
{
int numerator;
int denominator;
Fraction(){}
Fraction(int x, int y...
分类:
其他好文 时间:
2014-07-19 02:31:25
阅读次数:
199