码迷,mamicode.com
首页 >  
搜索关键字:struct stat    ( 35365个结果)
usaco-milk2-pass
呵呵,通过:/*ID: qq104801LANG: C++TASK: milk2*/#include #include #include /* for debug only:counter*/void debug_dummy(void){ return;}typedef struct _kk{...
分类:其他好文   时间:2014-08-28 18:05:45    阅读次数:362
c++绝对是拯救了世界,特别是程序员
最近捣鼓一个开源的c程序,查看一个结构体,一层套一层的结构把人看的眼都晕了多亏c++支持对象替代了c的结构体遍地跑一下截取一部分大家欣赏下typedef struct { char *setname; /**0) (input) */} bend_search_rr;s...
分类:编程语言   时间:2014-08-28 17:49:25    阅读次数:240
POJ 2007 Scrambled Polygon (简单极角排序)
题目链接题意 : 对输入的点极角排序思路 : 极角排序方法#include #include #include #include using namespace std;struct point{ double x,y;}p[50],pp;double cross(point a,point ...
分类:其他好文   时间:2014-08-28 14:45:59    阅读次数:175
Unix 网络编程 读书笔记2
第三章 套接字编程简介每一个 Socket 都用一个半相关描述:{协议,本地地址,本地端口}一个完整的 Socket 则用一个相关描述{协议,本地地址,本地端口,远程地址,远程端口}每一个 Socket 有一个本地的唯一 Socket 号,由操作系统分配。1.struct sockaddr这个结构用...
分类:其他好文   时间:2014-08-28 14:37:21    阅读次数:220
日期计算
#include#includeusing namespace std;//日期函数int days[12]={31,28,31,30,31,30,31,31,30,31,30,31};struct date{ int year,month,day;};//判闰年inline int leap(in...
分类:其他好文   时间:2014-08-28 13:13:39    阅读次数:199
经典DP 嵌套矩形 (南洋理工ACM—16)
本来是个很水的DP,结果被自己的代码习惯给打败了代码: 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 typedef struct rectangle 8 { 9 int x;10 int y;11 }...
分类:其他好文   时间:2014-08-28 13:05:19    阅读次数:197
8皇后问题
typedef struct Spoint{ int x; int y; Spoint() { x = -1; y = -1; }};static Spoint point[8];int Queen8(int n, int cur){ static int iCount = 0; if(cur...
分类:其他好文   时间:2014-08-28 13:01:09    阅读次数:183
Linux网络编程2——系统函数
socket信息数据结构 #include struct sockaddr { unsigned short sa_family; /*地址族*/ char sa_data[14]; /*14字节的协议地址,包含该socket的IP地址和端口号。*/};struct sockaddr_in { sh...
分类:系统相关   时间:2014-08-28 02:04:28    阅读次数:398
普通二叉树转换成搜索二叉树
struct ListNode{ int data; ListNode *lchild,*rchild;};void CreateBSTree(ListNode *B2_root,ListNode *BSTree_root){ if(BSTree_root==NULL) ...
分类:其他好文   时间:2014-08-27 23:10:48    阅读次数:228
UVa10803_Thunder Mountain(最短路)(小白书图论专题)
解题报告 裸floyd。 #include #include #include #include #define inf 0x3f3f3f3f using namespace std; int n; double mmap[210][210]; struct node { double x,y; } p[210]; double disc(node p1,node p2) { ...
分类:其他好文   时间:2014-08-27 22:05:58    阅读次数:312
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!