当前位置:网站首页>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");
}
边栏推荐
- Use MNIST in tensorflow 2_ 784 data set for handwritten digit recognition
- Have you stepped on the nine common pits in the e-commerce system?
- Imitation Jingdong magnifying glass effect (pink teacher version)
- juypter notebook 修改默认打开文件夹以及默认浏览器
- Tutoriel (5.0) 10. Dépannage * fortiedr * fortinet Network Security expert NSE 5
- M2dgr: slam data set of multi-source and multi scene ground robot (ICRA 2022)
- 9D电影是怎样的?(+维度空间常识)
- Obligatoire pour les débutants, cliquez sur deux boutons pour passer à un contenu différent
- Mysql高级篇学习总结7:Mysql数据结构-Hash索引、AVL树、B树、B+树的对比
- Mini Golf Course: a good place for leisure and tourism in London
猜你喜欢
[paper reading] Ca net: leveraging contextual features for lung cancer prediction
【JVM调优实战100例】03——JVM堆调优四例
数据降维——因子分析
材质UV遮罩的技巧
PHP-Parser羽毛球预约小程序开发require线上系统
Introduction to the paper | application of machine learning in database cardinality estimation
How to enable the run dashboard function of idea
Excel如何进行隔行复制粘贴
教程篇(5.0) 09. RESTful API * FortiEDR * Fortinet 网络安全专家 NSE 5
【JVM调优实战100例】01——JVM的介绍与程序计数器
随机推荐
【测试开发】一文带你了解什么是软件测试
Emmet基础语法
仿京东放大镜效果(pink老师版)
数据降维——因子分析
LightGroupButton* sender = static_ cast<LightGroupButton*>(QObject::sender());
R语言ggplot2可视化:可视化折线图、使用labs函数为折线图添加自定义的X轴标签信息
[论文阅读] CA-Net: Leveraging Contextual Features for Lung Cancer Prediction
R language ggplot2 visualization: visualize the line chart and add customized X-axis label information to the line chart using labs function
How to play when you travel to Bangkok for the first time? Please keep this money saving strategy
FastDFS安装
新手必看,点击两个按钮切换至不同的内容
R language ggplot2 visualization: gganimate package creates dynamic histogram animation (GIF) and uses transition_ The States function displays a histogram step by step along a given dimension in the
高频面试题
"Patient's family, please come here" reading notes
M2DGR:多源多场景 地面机器人SLAM数据集(ICRA 2022 )
2022编译原理期末考试 回忆版
How to clean up discarded PVs and their corresponding folders
为什么要做企业固定资产管理系统,企业如何加强固定资产管理
Progress progress bar
教程篇(5.0) 10. 故障排除 * FortiEDR * Fortinet 網絡安全專家 NSE 5