vc
xujianglun
这个作者很懒,什么都没留下…
展开
-
如何动态修改GroupBox的标题
深圳-菜菜动态改变Group Box的标题怎么弄深圳-菜菜 12:49:52恩,对应时不是有:DDX_GroupBox(pDX, IDC_STATIC_CONTR, StaTitle);// GroupBox深圳-菜菜 12:50:16貌似不对,是怎样写的?深圳12:52:55是哪个调用 setwindowText 福州 12:53:13DDX_Control(pDX, IDC_STATIC1, m_button;福州 12:53:19m_button.SetWindowText("sdf")原创 2010-11-16 13:03:00 · 5158 阅读 · 1 评论 -
一个简单问题三天解决的一个问题
这几天在调试一个函数,总是出问题;要实现电脑通过串口发数据;数据的格式有规定;PELCOD协议; /*BYTE messagesend[] ={0xff,0x01, 0x00, 0x08, 0x00, 0xff, 0x08} ; BYTE * test=messagesend;//问题1,能不能使用指针;messagesend 指针遇到'/0'时结束;(ANSI 中0x00等价于'/0' Unicode 不是) WriteToPort(messagesend,7); BYTE me原创 2010-11-15 16:51:00 · 1233 阅读 · 2 评论 -
数组与指针的一个细微差别
<br />#include <stdio.h> int main() { char *p="abcdef"; //很多书上说:p在栈,“abcdef”在数据区 :没错!!!! p[2]='W'; printf(p); getchar(); return 0; } 这个程序编译通过,但是问什么程序运行会出错? //p指向的是一块常量数据区,不能修改其值!!!! 另一个: #include <stdio.h> int main() { char s[]转载 2011-04-12 17:43:00 · 722 阅读 · 6 评论 -
队列的使用
#include "stdafx.h" #include"queue.h" #include #include /*构造一个空队列*/ Queue *InitQueue() { Queue *pqueue = (Queue *)malloc(sizeof(Queue)); if(pqueue!=NULL) { pqueue->front = NULL; pqueue->rear =原创 2015-05-25 16:45:39 · 410 阅读 · 0 评论 -
queue的使用
//////////queue.h///////// #ifndef Queue_H #define Queue_H typedef unsigned char Item; typedef struct node * PNode; typedef struct node { Item data; PNode next; }Node; typedef原创 2015-05-25 16:50:31 · 1079 阅读 · 0 评论 -
循环队列
// test_demo.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include "stdio.h"#include "windows.h"#define QueueSize 100 /*假定预分配的队列空间最多为100个元素*/ typedef int DataType; /*假定队列元素的数据类型为字符*/ typedef struct{DataTy原创 2015-09-01 14:34:40 · 470 阅读 · 0 评论