登录
首页 » C++ » 自动静态 C++ 计数器(有范围)

自动静态 C++ 计数器(有范围)

于 2022-03-25 发布 文件大小:6.25 kB
0 101
下载积分: 2 下载次数: 1

代码说明:

翻译 maninwest@Codeforge  作者:Paul M Watt@CodeProject 这是个在编译时中使用的静态计数器,是个小的自我包含的头文件的实现。功能: 比 __COUNTER__[^] 非标准编译器 MACRO 更容易移植. 一个编写单位中可以存在多个实例,跟 __COUNTER__ 不同。 使用自然语法,不同于 Boost::Preprocessor[^] 计数器 此实现当前仅可以用于小规模应用,每个计数器实例仅 50-100 行,旨在用于嵌入到 另一个 MACRO 中使用,每次外部 MACRO 被调用时,该计数器都会自增。 该实用程序可以帮助创建唯一的注册 id,或自动化的索引条目。 使用代码 这

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • bj
    说明:  51单片机实现对步进电机的控制,改变程序中的数值可改变转速和角度(51 single-chip stepper motor control, change the value of the program can change the speed and angle)
    2013-06-07 20:53:28下载
    积分:1
  • key1
    说明:  可以实现不通过的按键功能,模式切换,声道调节(Implementing the function of keys that do not pass)
    2019-01-09 16:17:41下载
    积分:1
  • CODIGO_SCRIPT
    an example of bootloader
    2009-02-20 19:55:19下载
    积分:1
  • 27796696tdxplugin
    TDX plugin 这是一个实例,如何开发TDX的插件(TDX plugin)
    2010-11-12 09:18:31下载
    积分:1
  • MB95F636k_Motor
    使用MB95F636单片机开发的直流无刷无感电机的驱动源程序,BLDC.(Use MB95F636 MCU development Brushless DC motor drive source, BLDC.)
    2021-01-11 22:28:48下载
    积分:1
  • 58
    说明:  Learning.Unreal.Engine.iOS.Game.Development.2015 虚幻四IOS发布(Learning.Unreal.Engine.iOS.Game.Development.2015)
    2019-07-20 22:00:25下载
    积分:1
  • Simple_MFC
    深入浅出MFC简体中文版(附源码),包括电子书(PDF格式)和源代码。(Simple MFC (simplified Chinese) ,including the ebook (PDF) and the source code.)
    2010-08-19 08:51:04下载
    积分:1
  • EvolutionPofPnetworks
    From Biological Nets to the Internet and WWW
    2011-04-06 18:06:01下载
    积分:1
  • xiangpintexin
    本作品以MSP430单片机为核心, 基于DDS原理,通过查表方式输出步进量为10HZ,频率为100HZ~2KHZ的正弦波。两路被测信号通过过零比较、异或和低通滤波整流,实现了对相位差的测量,误差小于(This works with MSP430 microcontroller as the core, based on DDS principle, by look-up table output step sizes for the 10HZ, frequency of 100HZ ~ 2KHZ sine wave. Two by the signal zero-crossing comparator, XOR, rectification and low-pass filtering, the realization of the phase of the measurement error is less than)
    2013-05-23 15:14:22下载
    积分:1
  • 飞行棋项目
    使用C#编程语言制作小游戏--飞行棋。使用Windows平台软件VS2010编写,软件运行在Windows平台上。(Use C# programming language to make small games -- flight chess)
    2018-03-05 13:12:33下载
    积分:1
  • 696518资源总数
  • 106174会员总数
  • 31今日下载