摘要:
#include <map>#include <string>using namespace std;class MyString{ public:MyString(){m_string = "";}MyString(string& str){m_string = str;}~MyString(){ 阅读全文
摘要:
#include<iostream>using namespace std;bool PathernMatch(char *pat, char *str){ char *s = NULL; char *p = NULL; bool star = false; bool bBreak = false; 阅读全文
摘要:
dialog.h afx_msg LRESULT OnAcadKeepFocus(WPARAM, LPARAM); dialog.cpp BEGIN_MESSAGE_MAP(CTextDialog, CDialogEx) ON_MESSAGE(WM_ACAD_KEEPFOCUS, OnAcadKee 阅读全文
摘要:
bool ThreePointIsCollinear(const AcGePoint2d &pt1, const AcGePoint2d &pt2, const AcGePoint2d &pt3){ double xy = pt1.x * pt1.x + pt1.y * pt1.y; double 阅读全文
摘要:
#include<iostream>#include<cstdio>using namespace std; void* mymemcpy(void* dst, const void* src, size_t n){ if (dst == NULL || src == NULL) return NU 阅读全文
摘要:
char *strcpy(char* strDest, const char*strSrc){ assert(strDest != NULL&&strSrc != NULL); char* address = strDest; while (*strSrc != '\0'){ *strDest = 阅读全文
摘要:
char *strcat(char* strDest, const char*strSrc){ assert(strDest != NULL&&strSrc != NULL); char* address = strDest; while (*strDest != '\0') strDest++; 阅读全文
摘要:
int strcmp(const char* str1, const char*str2){ assert(str1 != NULL&&str2 != NULL); while (*str1&&*str1 == *str2){ str1++; str2++; } if (*(unsigned cha 阅读全文
摘要:
double CCommonFuntion::GetLineDistance(AcDbObjectId& Line1, AcDbObjectId& Line2){ AcGeLineSeg2d geLine1 = GetGeLineObj(Line1); AcGeLineSeg2d geLine2 = 阅读全文
摘要:
void CCommonFuntion::DrowPloyLine(AcGePoint2dArray& inputpoints){ if (inputpoints.length() < 3) return; AcDbPolyline *pPolyLine = new AcDbPolyline(3); 阅读全文