上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 37 下一页
摘要: 包含打开文件,保存文件,复制,粘贴,剪切功能,都是在菜单栏目上实现的功能 阅读全文
posted @ 2012-04-24 22:30 涵曦 阅读(21435) 评论(5) 推荐(1) 编辑
摘要: 使用UDP协议,通过发送数据报给对方,每次启动时需要设定接收数据的端口号,发送到的ip地址和端口可以在启动后修改。 阅读全文
posted @ 2012-04-24 22:26 涵曦 阅读(16519) 评论(14) 推荐(0) 编辑
摘要: //使用二次B样条曲线生成离散点vector<Point>& Route::bSpline(){ double a0,a1,a2; double dt,t1,t2; Point tmp_p; //使首位相连 Point *newp = new Point[num_points+2]; for (int i=0; i<num_points; i++) { newp[i].setXY(p[i].x, p[i].y); } newp[num_points].setXY(p[0].x, p[0].y); newp[num_poi... 阅读全文
posted @ 2012-04-14 08:22 涵曦 阅读(1801) 评论(0) 推荐(0) 编辑
摘要: void gauss(double a[3][3], double b[], int m, double x[]){ for (int i=0; i<m; i++) { float tmp = a[i][i]; int t; //选主元 for (int k=i+1; k<m; k++) { if (fabs(tmp) < fabs(a[k][i])) { t=k; tmp = a[k][i]; ... 阅读全文
posted @ 2012-04-10 14:16 涵曦 阅读(459) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 37 下一页