Shirlies
宁静专注认真的程序媛~
摘要: 敲打代码的时候竟然忘记qsort()怎么用的了……题目大致意思就是求线段投影把x轴分成几段了,之前看过一道例题(刘汝佳编写的《算法入门经典》提到过类似的题目,有类似的思路吧),很类似……#include "stdio.h"#include "stdlib.h"#include "math.h"typedef struct point{ double start,end;}points;points p[120];int s_x,s_y;double get_x(int x,int y){ if(x==s_x) return (doub 阅读全文
posted @ 2012-02-11 20:32 Shirlies 阅读(204) 评论(0) 推荐(0) 编辑