摘要: 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 石首桃花山 阅读(42) 评论(0) 推荐(0) 编辑
摘要: /*双字半定义*/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 石首桃花山 阅读(156) 评论(0) 推荐(0) 编辑
摘要: //AllocConsole(); //freopen("CONOUT$", "w", stdout); 阅读全文
posted @ 2020-06-01 11:09 石首桃花山 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 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 石首桃花山 阅读(1917) 评论(0) 推荐(0) 编辑
摘要: 1、单例模式 头文件 static axController *Instance() { if ( !_instance ) { _instance = new axController; } return _instance; } static axController *_instance; 源 阅读全文
posted @ 2020-05-14 10:49 石首桃花山 阅读(655) 评论(0) 推荐(0) 编辑
摘要: #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 石首桃花山 阅读(180) 评论(0) 推荐(0) 编辑
摘要: //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 石首桃花山 阅读(946) 评论(0) 推荐(0) 编辑
摘要: 引入QGroupBox groupBoxRad = new QButtonGroup(this); groupBoxRad->addButton(ui->radioButton); groupBoxRad->addButton(ui->radioButton_2); groupBoxRad->add 阅读全文
posted @ 2019-10-25 09:07 石首桃花山 阅读(475) 评论(0) 推荐(0) 编辑
摘要: QGraphicsItem *temp= scene()->itemAt(point, transform()); QLadderDiagramItem* node_temp = dynamic_cast<QLadderDiagramItem *>(temp); 阅读全文
posted @ 2019-10-08 10:05 石首桃花山 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 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 石首桃花山 阅读(243) 评论(0) 推荐(0) 编辑