- 博客(4)
- 收藏
- 关注
原创 万花筒
简要介绍一下调用Win API实现万花筒的过程: 首先假想一个圆,在其边界上有25个等分点,将其坐标存进数组,等分点的数据结构如下: typedef struct DOT { POINT point[DOTNUM]; //存储点的x,y坐标 COLORREF color[DOTNUM]; //每个点的颜色,假设第1个点向第2个点划线,则这条线的颜色是第2个点的颜色 }DOT; 可以看到每个点...
2019-04-29 19:14:40
1199
1
原创 空间后方交会c++程序和matlab(可直接运行)
本文不详细说明空间后方交会的原理,只着重说明空间后方交会的程序,并附带一个样例。 样例来源:《摄影测量学》(第二版)武汉大学出版社,张剑清,潘励,王树根。 空间后方交会的误差方程式: 可以简写为: 写成矩阵形式: 根据误差方程式列出法方程式: 整理可得: 其中: 以下是代码实现: 分为四个文件:main.cpp,Matrix.h(矩阵类),SpaceResection.h(空间后方交会的函...
2019-04-25 13:15:28
23265
17
原创 PAT-A 1021.Deepest Root(25分)
A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the root that results in a highest tree. Such a root ...
2019-03-16 15:07:24
224
原创 PAT-A1022.Digital-Library
A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published years. Each book is assigned an unique 7-digit number a...
2019-03-15 20:33:30
207
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅