资源简介
C语言 实现的一维码CODE128编码算法
代码片段和文件信息
/*-----------------------------------------
SINEWAVE.C -- Sine Wave Using Polyline
(c) Charles Petzold 1998
-----------------------------------------*/
#include
#include
/*****************Code128A******************/
/*ASCII码从32开始*/
unsigned char Code128[] =
{
“11011001100“
“11001101100“
“11001100110“
“10010011000“
“10010001100“
“10001001100“
“10011001000“
“10011000100“
“10001100100“
“11001001000“
“11001000100“
“11000100100“
“10110011100“
“10011011100“
“10011001110“
“10111001100“
“10011101100“
“10011100110“
“11001110010“
“11001011100“
“11001001110“
“11011100100“
“11001110100“
“11101101110“
“11101001100“
“11100101100“
“11100100110“
“11101100100“
“11100110100“
“11100110010“
“11011011000“
“11011000110“
“11000110110“
“10100011000“
“10001011000“
“10001000110“
“10110001000“
“10001101000“
“10001100010“
“11010001000“
“11000101000“
“11000100010“
“10110111000“
“10110001110“
“10001101110“
“10111011000“
“10111000110“
“10001110110“
“11101110110“
“11010001110“
“11000101110“
“11011101000“
“11011100010“
“11011101110“
“11101011000“
“11101000110“
“11100010110“
“11101101000“
“11101100010“
“11100011010“
“11101111010“
“11001000010“
“11110001010“
“10100110000“
“10100001100“
“10010110000“
“10010000110“
“10000101100“
“10000100110“
“10110010000“
“10110000100“
“10011010000“
“10011000010“
“10000110100“
“10000110010“
“11000010010“
“11001010000“
“11110111010“
“11000010100“
“10001111010“
“10100111100“
“10010111100“
“10010011110“
“10111100100“
“10011110100“
“10011110010“
“11110100100“
“11110010100“
“11110010010“
“11011011110“
“11011110110“
“11110110110“
“10101111000“
“10100011110“
“10001011110“
“10111101000“
“10111100010“
“11110101000“
“11110100010“
“10111011110“
“10111101110“
“11101011110“
“11110101110“
“11010000100“
“11010010000“
“11010011100“
“1100011101011“
};
#define NUM 30000
#define TWOPI (2 * 3.14159)
LRESULT CALLBACK WndProc (HWND UINT WPARAM LPARAM) ;
int WINAPI WinMain (HINSTANCE hInstance HINSTANCE hPrevInstance
PSTR szCmdLine int iCmdShow)
{
static TCHAR szAppName[] = TEXT (“SineWave“) ;
HWND hwnd ;
MSG msg ;
WNDCLASS wndclass ;
wndclass.style = CS_HREDRAW | CS_VREDRAW ;
wndclass.lpfnWndProc = WndProc ;
wndclass.cbClsExtra = 0 ;
wndclass.cbWndExtra = 0 ;
wndclass.hInstance = hInstance ;
wndclass.hIcon = LoadIcon (NULL IDI_APPLICATION) ;
wndclass.hCursor = LoadCursor (NULL IDC_ARROW) ;
wndclass.hbrBackground = (HBRUSH) GetStockobject (WHITE_BRUSH) ;
wndclass.lpszMenuName = NULL ;
wndclass.lpszClassName = szAppName ;
if (!RegisterClass (&wndclass))
{
MessageBox (NULL TEXT (“Program re
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 180296 2015-01-04 14:44 SineWave\Debug\SineWave.exe
文件 206196 2015-01-04 14:44 SineWave\Debug\SineWave.ilk
文件 18095 2015-01-04 14:44 SineWave\Debug\SineWave.obj
文件 2792160 2015-01-03 13:14 SineWave\Debug\SineWave.pch
文件 484352 2015-01-04 14:44 SineWave\Debug\SineWave.pdb
文件 41984 2015-01-04 14:44 SineWave\Debug\vc60.idb
文件 69632 2015-01-04 14:44 SineWave\Debug\vc60.pdb
..A.SH. 77 2014-12-29 09:08 SineWave\Desktop.ini
文件 32768 1998-10-09 17:00 SineWave\Release\SineWave.exe
文件 7414 2015-01-04 14:45 SineWave\SineWave.c
文件 84 1998-10-09 17:00 SineWave\SineWave.dep
文件 3670 2015-01-03 17:17 SineWave\SineWave.dsp
文件 539 1998-10-09 17:00 SineWave\SineWave.dsw
文件 4473 1998-10-09 17:00 SineWave\SineWave.mak
文件 41984 2015-01-04 14:45 SineWave\SineWave.ncb
文件 53760 2015-01-04 14:45 SineWave\SineWave.opt
文件 1415 2015-01-04 14:44 SineWave\SineWave.plg
目录 0 2015-01-04 14:26 SineWave\Debug
目录 0 2014-12-29 09:10 SineWave\Release
...D..R 0 2015-01-04 14:45 SineWave
----------- --------- ---------- ----- ----
3938899 20
- 上一篇:platformSDK
- 下一篇:springsnail项目源码
相关资源
- springsnail项目源码
- 图书信息管理系统设计源代码C++
- C语言 华容道源代码
- LL(1)文法判断Compilation principle
- fmod 音频库 c++ Qt编写
- 基于c++的RSA加密解密程序及源码
- 基于多线程的Linux聊天室系统
- 鼠标脚本精灵.rar
- 实现简单银行叫号模拟系统(C++版)
- C++万能头文件 stdc++.h
- 数据结构课设排序算法的可视化演示
- c++所有头文件
- mfc界面程序入门项目——整合sqlite3数
- C++ primer plus 第六版 全部编程练习答案
- stm32_Cjson源码
- MFC特强大CListCtrlEx支持插入控件、设置
- 算法与数据结构_C语言版_答案(1-8章
- 全国计算机二级c语言历年真题完整版
- C++面试题常见问题
- C++ 用户管理模块
- AES算法的C语言版本
- C++实现HTTP处理类
- 模拟 数据库 C语言 基本功能
- C++2017.txt
- 基于OPENGL的C语言大作业
- C.C++笔试面试必备宝典我就靠它进的公
- 02_C++PrimerPlus_中文版_第6版_超清.txt
- 泛型链表——C语言实现
- C语言实现三种闭包算法传递,自反,
- C++自绘柱状图.rar
评论
共有 条评论