#include
using namespace std;
struct vote{
int x;
string s;
}v[20];
bool cmp(vote a,vote b)
{
return a.x>b.x;
}
int main()
{
int n,m;
string str;
scanf("%d%d",&n,&m);
for(i...
分类:
其他好文 时间:
2014-07-29 13:07:57
阅读次数:
170
struct wpa_global * wpa_supplicant_init(struct wpa_params *params) struct wpa_supplicant * wpa_supplicant_add_iface(struct wpa_global *global,struct w...
分类:
其他好文 时间:
2014-07-29 12:34:06
阅读次数:
302
可以通过顶角角度来计算切线与坐标轴的坐标开始还以为有公式可以算,谁知道原来是解二元一次方程,靠。。#include #include #include #include using namespace std;const int MAX=1050;struct point{ double x; in...
分类:
其他好文 时间:
2014-07-29 11:44:26
阅读次数:
225
#ifndef __DEF_H__#define __DEF_H__#include #include #include #define TRUE 1#define FALSE 0//任务结构体typedef struct{ void (*thread_function_ptr_) (void...
分类:
编程语言 时间:
2014-07-29 11:34:56
阅读次数:
281
1 #include 2 #include 3 #include 4 5 typedef struct tire 6 { 7 struct tire *next[26];//由于是小写字母,所以26,数字10,大小写字母52 8 int v; 9 }Tire;10 11 Tire...
分类:
其他好文 时间:
2014-07-29 11:33:06
阅读次数:
208
http://acm.hdu.edu.cn/showproblem.php?pid=4862#include #include #include #include #include using namespace std ;const int INF=0xfffffff ;struct node{ ...
分类:
其他好文 时间:
2014-07-29 11:25:56
阅读次数:
306
Sort a linked list using insertion sort.题目要求:链表的插入排序,由于没有时间复杂度的要求,可以直接循环操作。/** * Definition for singly-linked list. * struct ListNode { * int val;...
分类:
其他好文 时间:
2014-07-29 10:54:26
阅读次数:
190
解法:比较简单,用plus表示进位 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *next; 6 * ListNode(in...
分类:
其他好文 时间:
2014-07-29 10:53:06
阅读次数:
273
typedef是类型定义的意思。typedef struct 是为了使用这个结构体方便。具体区别在于:若struct node {}这样来定义结构体的话。在申请node 的变量时,需要这样写,struct node n;若用typedef,可以这样写,typedefstruct node{}NODE...
分类:
其他好文 时间:
2014-07-29 10:48:06
阅读次数:
288
这俩个题 题意::给出N(#include #include #include #include using namespace std;typedef long long LL;struct info{ LL x,y; int cnt; info(){} info(int ...
分类:
其他好文 时间:
2014-07-28 23:54:54
阅读次数:
550