感言:以后中国高中生的专场还是慎入!!!!
A题目还是比较简单
AC代码:
#include
#include
using namespace std;
struct p
{
int number;
int val;
}num[105];
bool cmp(p x,p y)
{
if(x.val==y.val)
return x.number>...
分类:
其他好文 时间:
2014-07-22 22:49:34
阅读次数:
186
解题报告
没什么好说的,大于m的往后面放,,,re了一次,,,
#include
#include
#include
#include
using namespace std;
struct node
{
int x,cd;
}num[1000000];
int main()
{
int n,m,c;
cin>>n>>m;
int i;
for...
分类:
其他好文 时间:
2014-07-22 22:49:16
阅读次数:
247
#include
#include
#include
#define ZERO 0
const int FIRST_CHAR = '0';
char num[11111][20] ;
typedef struct node
{
struct node *child[20]; /* 存储下一个字符 */
int n; /* 记录当前单词出现的次数 */
}node, *No...
分类:
其他好文 时间:
2014-07-22 08:31:36
阅读次数:
205
#include
#include
#include
#define ZERO 0
const int FIRST_CHAR = '0';
char num[11111][20] ;
typedef struct node
{
struct node *child[20]; /* 存储下一个字符 */
int n; /* 记录当前单词出现的次数 */
}node, *No...
分类:
其他好文 时间:
2014-07-20 11:32:38
阅读次数:
215
函数引用操作符
struct absInt
{
int operator()(int val) const
{
cout!!!"<<endl;
return val<0 ? -val : val;
}
};
void fun1()
{
int i=-42;
absInt absObj;
int ui=absObj...
分类:
编程语言 时间:
2014-07-20 10:32:09
阅读次数:
380
1.带表头的单向链表
(1)不带表头的单向链表在实现插入和删除时必须区分头结点和其他节点的处理。
(2)使用带表头的单向链表的好处:不用考虑头结点的单独处理。
表头节点:数据域没有值,指针域指向单向链表中数据域含值的第一个结点。
2.代表头的单向链表的基本操作
#include
#include
#define NULL 0
typedef struct node {
int ...
分类:
其他好文 时间:
2014-07-20 10:31:16
阅读次数:
250
他妹的,敲完了,电脑死机了,全部消失了,又从新打了一遍,。。。这是什么节奏#include
#include
#include
#define ZERO 0
#define ALPH_LEN 26 /* 26个字母 */
const char FIRST_CHAR = 'a';
typedef struct node
{
struct node *child[ALPH_LEN]; ...
分类:
其他好文 时间:
2014-07-20 00:31:16
阅读次数:
286
下面我们用最简单的一对一的客户服务器模型来重现编程中遇到的一些问题:
初学socket的时候在编写socket程序的时候会遇到很多莫名其妙的问题,比如说bind函数返回的常见错误是EADDRINUSE
使用下面的程序重现这个状态:
client:
int main(int argc, const char * argv[])
{
struct sockaddr_in ...
分类:
其他好文 时间:
2014-07-19 23:36:19
阅读次数:
427
银行综合储蓄业务系统
#include
#include
int acccunt = 0;
char name[10],pw[10];
struct user //定义结构体
{
int ID;
char userName[10];
char userPwd[10];
float money;
int status; // 状态 1:正常 2. 挂失 0:销户
...
分类:
编程语言 时间:
2014-07-19 23:24:29
阅读次数:
336
#include
#include
#include
using namespace std;
struct node
{
int x,y,step;
};
char map[105][105];
int vis[105][105];
int to[4][2]= {1,0,-1,0,0,1,0,-1};
int n,m,sx,sy,ex,ey,ans;
int check(in...
分类:
其他好文 时间:
2014-07-19 23:11:19
阅读次数:
330