How can I convert a floating-point value to an integer in C?
摘要:How can I convert a floating-point value to an integer in C?This is one of the frequently asked questions about the C language, and it is discussed in short in the C FAQ list, as question 14.6. The answer there suggests the use an expression like but admits that this technique does not work for nega
阅读全文
posted @
2010-12-24 02:36
潇湘雨歇
阅读(1223)
推荐(0) 编辑
20101217
摘要:divide 等分split分割(字符串)// 将圆进行n等分,取得等分坐标序列void Circle::DividedEqual(CoordSequence& seq, int n){}// 维护圆等分坐标序列LayoutCircle{// 建立映射对typdef mapObjectIDType, int CoordSequenceMap;// 建立外部节点和坐标的映射SetPosition(int n, ObjectIDType ulNodeID);// 获取外部节点的坐标GetPosition(ObjectIDType ulNodeID);// 获取坐标映射序列GetAllPosit
阅读全文
posted @
2010-12-20 00:46
潇湘雨歇
阅读(395)
推荐(0) 编辑