Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 编程语言 > C/C++ > define的一种用法
【标  题】:define的一种用法
【关键字】:define
【来  源】:http://www.cublog.cn/u/12325/showart.php?id=118055

define的一种用法

Your Ad Here
#define Afun(x) T_##x
#define Bfun(x) #@x
#define Cfun(x) #x
如果x=1,则有:
Afun(1) = T_1
Bfun(1) = '1'
Cfun(1) = "1"
关于C/C++的一些小知识:【上一篇】
使用GNU gsl库扩充gcc:【下一篇】
【相关文章】
  • undefined reference to `_Unwind_Resume'
  • 13.4 User-defined conversions
  • 14.2.5 Candidate user-defined operators
  • What's the best way to declare and define global variables and functions?
  • A identifier can only be declared and not defined
  • Why does someone perfer #if defined to #ifdef
  • Predefined member functions and inheritance
  • Bjarne Stroustrup's email - Predefined member functions and inheritance
  • Implicitly declared/defined member functions and inheritance
  • greta的问题及解决: LIBCMTD.lib(_wctype.obj) : error LNK2005: _iswspace already defined in xxx.obj
  • 【随机文章】
  • 超级自信的 - Team Foundation Server Beta3 安装指南
  • 如何在SharePoint Server中整合其他应用系统?
  • C++标准库提供的功能和一些建议
  • info
  • CowNew开源-抛不了异常,我该怎么办
  • AJAX 技术入门
  • VM使用教程
  • 卸载oracle在windwos平台及unix平台
  • 康托尔、哥德尔、图灵——永恒的金色对角线
  • Makefile工具的使用
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.