-
打印条形码示例
资源描述
Code128
Code39
两种编码规则的条形码,数字变成条形码的转换方法。
// TODO: Add your control notification handler code here
CDC dc;
int CodeName,printQuality;
LPSTR partial=NULL,text;
CCode39 code39;
CCode128 code128;
UpdateData(TRUE);
text=m_CodeText.GetBuffer (50);
//获取编码方式
CodeName=m_CodeName.GetCurSel();
if(CodeName==CB_ERR)
{
MessageBox("请选择编码方式");
return;
}
switch(CodeName)
{
case 0:
CodeType=CODE39;
break;
case 1:
CodeType=CODE128A;
break;
case 2:
CodeType=CODE128B;
break;
case 3:
CodeType=CODE128C;
break;
}
//获取打印机设备环境
if(!(printDlg.DoModal()))
{
MessageBox("打印错误。");
return ;
}
- 2022-03-22 14:26:04下载
- 积分:1
-
8路PPM信号解码
我自己写的多路PPM信号,并行输入转串行输出。最多支持8路PPM信号同时输入,解码后,变成单线串行输出。实时转换。使用STM8S105 8位单片机,价格便宜。串行输出后接主控MPU,大大节约MPU资源。可应用在无线电接收机,各种飞控等等。
- 2023-01-12 00:15:04下载
- 积分:1
-
一个acm算法题目 问题描述: 有一个黑盒子,可视为一个15×10的二维矩阵,里面有一些空隙,在二维矩阵中用0表示空隙,用1表示被占有。现有一个仪器,可以从4个...
一个acm算法题目 问题描述: 有一个黑盒子,可视为一个15×10的二维矩阵,里面有一些空隙,在二维矩阵中用0表示空隙,用1表示被占有。现有一个仪器,可以从4个方向对盒子进行分行透视:从左到右,从左下到右上,从下到上,从右下到左上。透视可得到该二维矩阵的该行1的个数。要求,还原此矩阵。 输入:4行,每一行分别代表从左到右,从左下到右上,从下到上,从右下到左上透视所得的数据 输出:该矩阵 使用的方法是回溯法,具体见程序-a acm algorithm topic Problem description : a black box, as a 15 x 10 two-dimensional matrix, there are some gaps in two-dimensional matrix using 0 indicates the gap, with a show that occupies. An existing equipment, from the direction of four branches box for perspective : from left to right, from the lower left to upper right, from bottom to top, from the lower right to upper left. Perspective availability of the two-dimensional matrix of the line a number. Demand reduction of this matrix. Input : 4 firms on behalf of every line from left to right, from the lower left to upper right, from bottom to top, from the upper left to lower right perspective on data obtained from the output : the matrix method is the use of backtracking, see the specific procedures
- 2022-07-08 10:50:46下载
- 积分:1
-
2003ACM国际大学生程序设计大赛亚洲预赛广州赛区竞赛题目problem....
2003ACM国际大学生程序设计大赛亚洲预赛广州赛区竞赛题目problem.-2003ACM International Collegiate Programming Contest in Guangzhou Asian preliminaries proble Division One title race m.
- 2022-04-24 06:38:05下载
- 积分:1
-
矩阵运算
// 矩阵乘法: C=AB, A[m×v], B[v×n], C[m×n] ... for row-major matrices
// 允许A,B,C 带入相同参数.
double* matr_x(double*C, const double*Ao, const double*Bo, const int m,const int v, const int n){
if(!Ao || !Bo) return 0; if(!C) C=new double[m*n];
double* A=new double[m*v], * B=new double[v*n];
memcpy(A,Ao,m*v*sizeof(double)); memcpy(B,Bo,v*n*sizeof(double));
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-04-07 01:39:24下载
- 积分:1
-
MATLAB图像处理函数
MATLAB图像处理函数 提供了多个对图像操作的函数指令以及说明,并带有简单例子。内容涵盖滤波,
傅立叶变换,等常用操作。
- 2022-01-22 11:52:12下载
- 积分:1
-
Vondrak算法:主要用于未知函数测量数据滤波
Vondrak算法:主要用于未知函数测量数据滤波-Vondrak algorithm: being used in the filtering of measuring data whose function is unknown.
- 2022-02-07 20:14:03下载
- 积分:1
-
把秒生成时间格式
把秒生成时间格式-put seconds generation time format
- 2022-02-02 16:46:25下载
- 积分:1
-
该程序用递归的方法产生格雷码序列,它需要一定的额外的空间....
该程序用递归的方法产生格雷码序列,它需要一定的额外的空间.-the procedures used recursive methods Gray code sequence, it needs the additional space.
- 2022-04-11 15:53:22下载
- 积分:1
-
MATLAB FIELD II
超声仿真程序,用于超声成像的算法仿真,亲测好用。Field_II是丹麦超声专家J. A. Jensen等利用声学原理设计的一个超声系统。它可以仿真超声探头所形成的声场和超声图像等。
- 2023-08-11 04:20:03下载
- 积分:1