当前位置:网站首页>Preprocessing and preprocessing macros
Preprocessing and preprocessing macros
2022-07-02 19:11:00 【Leisurely young heart】
// The system comes with preprocessing macros
#include<stdio.h>
void main() {
//region It's equivalent to a label that can wrap him There's no practical use
#pragma region hong
printf("%s \n", __DATE__);// Get date
printf("%s \n", __TIME__);// Acquisition time
printf("%s \n", __FILE__);// Get the file name
printf("%d \n", __LINE__);// Print the current number of lines
printf("%d \n", __STDC_HOSTED__);// If you return 1 Is to meet the standard C library
//printf("%d \n", __STDC__)// If it's standard C The compiler can use this If it's not, it will report an error
//printf("%d \n", __LP64__);//__LP64__ Judge whether the system is 64 position If so, for 1
#pragma endregion hong
system("pause");
}
// Macro definition
#pragma once // Prevent header files from repeatedly containing
#include<stdio.h>
#define OOO 1 // Macro definition OOO by 1
#undef OOO // Undefine macro
void main() {
#ifdef OOO
printf("0"); // If there is a macro definition, it returns true
#else
printf("-1 \n"); // Print without -1
#endif // OOO
#ifndef OOO // If there is no definition, it returns true
printf("0"); // If there is a macro definition print 0
#else
printf("-1"); // Print without -1
#endif // OOO
#if OOO
#else
#endif
system("pause");
}
边栏推荐
- Gstore weekly gstore source code analysis (4): black and white list configuration analysis of security mechanism
- Thoroughly understand the point cloud processing tutorial based on open3d!
- 全志A33使用主线U-Boot
- Processing strategy of message queue message loss and repeated message sending
- 2022 software engineering final exam recall Edition
- Stratégie touristique d'été de Singapour: un jour pour visiter l'île de San taosha à Singapour
- 电商系统中常见的 9 大坑,你踩过没?
- Learn the knowledge points of eight part essay ~ ~ 1
- M2DGR:多源多场景 地面机器人SLAM数据集(ICRA 2022 )
- FastDFS安装
猜你喜欢

Transformation of thinking consciousness is the key to the success or failure of digital transformation of construction enterprises

LightGroupButton* sender = static_cast<LightGroupButton*>(QObject::sender());

Mysql高级篇学习总结6:索引的概念及理解、B+树产生过程详解、MyISAM与InnoDB的对比

新加坡暑假旅游攻略:一天玩转新加坡圣淘沙岛

Google's official response: we have not given up tensorflow and will develop side by side with Jax in the future

The difference between SLC, MLC, TLC and QLC NAND SSD: which is better?

Excel查找一列中的相同值,删除该行或替换为空值

【JVM调优实战100例】03——JVM堆调优四例
![[daily question] first day](/img/8c/f25cddb6ca86d44538c976fae13c6e.png)
[daily question] first day

SLC、MLC、TLC 和 QLC NAND SSD 之间的区别:哪个更好?
随机推荐
Hongmeng's fourth learning
ORA-01455: converting column overflows integer datatype
聊聊电商系统中红包活动设计
高频面试题
Hospital online inquiry source code hospital video inquiry source code hospital applet source code
How performance testing creates business value
Compile oglpg-9th-edition source code with clion
Talk about the design of red envelope activities in e-commerce system
Processing strategy of message queue message loss and repeated message sending
仿京东放大镜效果(pink老师版)
深度学习数学基础
虚拟机初始化脚本, 虚拟机相互免秘钥
R language dplyr package Na_ The if function converts the control in the vector value into the missing value Na, and converts the specified content into the missing value Na according to the mapping r
ICDE 2023|TKDE Poster Session(CFP)
What is 9D movie like? (+ common sense of dimension space)
[test development] software testing - concept
为什么要做企业固定资产管理系统,企业如何加强固定资产管理
"Patient's family, please come here" reading notes
日期工具类(不定时更新)
使用CLion编译OGLPG-9th-Edition源码