C语言:#define、#ifdef、#endif的用法


#include "stdafx.h"
#include<stdio.h>
#include<string.h>
#include <math.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
//#pragma comment(lib,"comctl32.lib")
//#pragma comment(lib,"winmm.lib")
#pragma warning(disable:4996)


#define LOCAL
int main(void)
{
#ifdef LOCAL
	printf("aaaaaaaaaaaaaaaaaaa\n");
#endif
	printf("bbbbbbbbbbbbbbbbbbb\n");
	printf("Time used = %.2f\n", (double)clock() / CLOCKS_PER_SEC);//单位秒

	getchar();
	system("pause");
	return 0;
	
}

猜你喜欢

转载自blog.csdn.net/weibo1230123/article/details/81385253