会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
石首桃花山
博客园
首页
新随笔
联系
管理
订阅
2021年7月20日
union
摘要: typedef union { struct SCOPE_TYPE_CART { unsigned int actual_cart : 1; unsigned int acutal_dcart : 1; unsigned int actual_ddcart : 1; unsigned int tar
阅读全文
posted @ 2021-07-20 15:37 石首桃花山
阅读(51)
评论(0)
推荐(0)
2020年9月12日
__BIG_ENDIAN和struct
摘要: /*双字半定义*/typedef struct{ #ifdef __BIG_ENDIAN INT32U bit39:1; INT32U bit38:1; INT32U bit37:1; INT32U bit36:1; INT32U bit35:1; INT32U bit34:1; INT32U bi
阅读全文
posted @ 2020-09-12 16:58 石首桃花山
阅读(169)
评论(0)
推荐(0)
2020年6月1日
AllocConsole
摘要: //AllocConsole(); //freopen("CONOUT$", "w", stdout);
阅读全文
posted @ 2020-06-01 11:09 石首桃花山
阅读(145)
评论(0)
推荐(0)
2020年5月26日
float转uint16_t
摘要: float v; uint32_t v_tmp; uint16_t v_h; uint16_t v_l; v_tmp = *(int *)&v; v_h = v_tmp >> 16; v_l = v_tmp & ~(0xFFFF<<16);
阅读全文
posted @ 2020-05-26 08:24 石首桃花山
阅读(2261)
评论(0)
推荐(0)
2020年5月14日
机器人示教器开发关键代码总结 1
摘要: 1、单例模式 头文件 static axController *Instance() { if ( !_instance ) { _instance = new axController; } return _instance; } static axController *_instance; 源
阅读全文
posted @ 2020-05-14 10:49 石首桃花山
阅读(915)
评论(0)
推荐(0)
2020年1月7日
变量名变字符串
摘要: #define name_to_str(xxx) #xxx#include<stdio.h>#include<string.h>using namespace std; int nameTest=9; std::string dgdfg=name_to_str(nameTest); QString
阅读全文
posted @ 2020-01-07 17:08 石首桃花山
阅读(186)
评论(0)
推荐(0)
2020年1月2日
32位浮点数二进制转换为int32
摘要: //first High second Lowvoid process32BitConvertToDouble6Bit(float source,uint16_t &first,uint16_t &second){ uint32_t v_tmp; qDebug() << v_tmp; v_tmp =
阅读全文
posted @ 2020-01-02 17:30 石首桃花山
阅读(1026)
评论(0)
推荐(0)
2019年10月25日
radioButton互斥
摘要: 引入QGroupBox groupBoxRad = new QButtonGroup(this); groupBoxRad->addButton(ui->radioButton); groupBoxRad->addButton(ui->radioButton_2); groupBoxRad->add
阅读全文
posted @ 2019-10-25 09:07 石首桃花山
阅读(489)
评论(0)
推荐(0)
2019年10月8日
父子转换QGraphicsItem转子类
摘要: QGraphicsItem *temp= scene()->itemAt(point, transform()); QLadderDiagramItem* node_temp = dynamic_cast<QLadderDiagramItem *>(temp);
阅读全文
posted @ 2019-10-08 10:05 石首桃花山
阅读(322)
评论(0)
推荐(0)
2019年9月21日
OnDraw
摘要: void CSFCView::OnDraw(CDC* pDC){// return; CSFCDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); if(m_pPrgInfo==NULL) return; if(g_PrjMg.GetShowType()!=S
阅读全文
posted @ 2019-09-21 17:34 石首桃花山
阅读(251)
评论(0)
推荐(0)
下一页
公告