Chinaunix首页 | 论坛 | 博客
  • 博客访问: 380188
  • 博文数量: 81
  • 博客积分: 1290
  • 博客等级: 中尉
  • 技术积分: 821
  • 用 户 组: 普通用户
  • 注册时间: 2011-07-17 07:48
个人简介

Just do IT.

文章分类

全部博文(81)

分类: C/C++

2012-01-01 18:35:59

#include "stdio.h"
#define func(a) #a
void main()
{
    printf(func(abc));
}//结果????
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#include "stdio.h"
#define func(x,y) x##y
void main()
{
   printf("%d\n",func(12,89));
    printf("%s\n",func("12","cd"));
}//结果????
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#include
#define func(a) 
void main()
{
 char i;
 i=func(d);
 putchar(i);
 printf("\n");
 system("pause");
}//结果??????
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#include
#define OK 100
void main()
{
 printf("OK  \n");
 printf("%d  \n",OK);
 system("pause");
}
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
阅读(1667) | 评论(0) | 转发(0) |
0

上一篇:如何学习C语言_讲座稿

下一篇:网址收藏

给主人留下些什么吧!~~