上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
摘要: #include <map>#include <string>using namespace std;class MyString{ public:MyString(){m_string = "";}MyString(string& str){m_string = str;}~MyString(){ 阅读全文
posted @ 2019-11-26 16:20 久龄 阅读(346) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;bool PathernMatch(char *pat, char *str){ char *s = NULL; char *p = NULL; bool star = false; bool bBreak = false; 阅读全文
posted @ 2019-11-18 14:05 久龄 阅读(692) 评论(0) 推荐(0) 编辑
摘要: dialog.h afx_msg LRESULT OnAcadKeepFocus(WPARAM, LPARAM); dialog.cpp BEGIN_MESSAGE_MAP(CTextDialog, CDialogEx) ON_MESSAGE(WM_ACAD_KEEPFOCUS, OnAcadKee 阅读全文
posted @ 2019-11-15 18:51 久龄 阅读(296) 评论(0) 推荐(0) 编辑
摘要: bool ThreePointIsCollinear(const AcGePoint2d &pt1, const AcGePoint2d &pt2, const AcGePoint2d &pt3){ double xy = pt1.x * pt1.x + pt1.y * pt1.y; double 阅读全文
posted @ 2019-11-11 09:00 久龄 阅读(176) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<cstdio>using namespace std; void* mymemcpy(void* dst, const void* src, size_t n){ if (dst == NULL || src == NULL) return NU 阅读全文
posted @ 2019-11-08 16:01 久龄 阅读(1016) 评论(0) 推荐(0) 编辑
摘要: char *strcpy(char* strDest, const char*strSrc){ assert(strDest != NULL&&strSrc != NULL); char* address = strDest; while (*strSrc != '\0'){ *strDest = 阅读全文
posted @ 2019-11-08 16:00 久龄 阅读(324) 评论(0) 推荐(0) 编辑
摘要: char *strcat(char* strDest, const char*strSrc){ assert(strDest != NULL&&strSrc != NULL); char* address = strDest; while (*strDest != '\0') strDest++; 阅读全文
posted @ 2019-11-08 15:58 久龄 阅读(343) 评论(0) 推荐(0) 编辑
摘要: int strcmp(const char* str1, const char*str2){ assert(str1 != NULL&&str2 != NULL); while (*str1&&*str1 == *str2){ str1++; str2++; } if (*(unsigned cha 阅读全文
posted @ 2019-11-08 15:57 久龄 阅读(598) 评论(0) 推荐(0) 编辑
摘要: double CCommonFuntion::GetLineDistance(AcDbObjectId& Line1, AcDbObjectId& Line2){ AcGeLineSeg2d geLine1 = GetGeLineObj(Line1); AcGeLineSeg2d geLine2 = 阅读全文
posted @ 2019-11-07 17:34 久龄 阅读(787) 评论(0) 推荐(0) 编辑
摘要: void CCommonFuntion::DrowPloyLine(AcGePoint2dArray& inputpoints){ if (inputpoints.length() < 3) return; AcDbPolyline *pPolyLine = new AcDbPolyline(3); 阅读全文
posted @ 2019-11-07 17:32 久龄 阅读(904) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页