会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
久龄
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
12
下一页
2019年11月26日
C++之自定义key类型,重载操作符
摘要: #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 久龄
阅读(364)
评论(0)
推荐(0)
2019年11月18日
C++通配符
摘要: #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 久龄
阅读(721)
评论(0)
推荐(0)
2019年11月15日
objectarx MFC 非模态对话框为当前焦点
摘要: 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 久龄
阅读(338)
评论(0)
推荐(0)
2019年11月11日
objectarx之判断给定的三点是否共线
摘要: 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 久龄
阅读(201)
评论(0)
推荐(0)
2019年11月8日
C++ 之手写memcpy
摘要: #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 久龄
阅读(1047)
评论(0)
推荐(0)
C++ 之手写strcpy
摘要: 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 久龄
阅读(337)
评论(0)
推荐(0)
C++ 之手写strcat
摘要: 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 久龄
阅读(356)
评论(0)
推荐(0)
c++之手写strcmp
摘要: 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 久龄
阅读(624)
评论(0)
推荐(0)
2019年11月7日
objectarx之两条曲线最短距离
摘要: double CCommonFuntion::GetLineDistance(AcDbObjectId& Line1, AcDbObjectId& Line2){ AcGeLineSeg2d geLine1 = GetGeLineObj(Line1); AcGeLineSeg2d geLine2 =
阅读全文
posted @ 2019-11-07 17:34 久龄
阅读(882)
评论(0)
推荐(0)
objectarx之画多段线和画直线
摘要: void CCommonFuntion::DrowPloyLine(AcGePoint2dArray& inputpoints){ if (inputpoints.length() < 3) return; AcDbPolyline *pPolyLine = new AcDbPolyline(3);
阅读全文
posted @ 2019-11-07 17:32 久龄
阅读(969)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
12
下一页
公告