当前位置:网站首页>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");
}
边栏推荐
- 全志A33使用主线U-Boot
- R语言dplyr包filter函数筛选dataframe数据、如果需要筛选的数据列(变量)名称中包含引号则需要使用!!sym语法处理、否则因为无法处理引号筛选不到任何数据
- [test development] takes you to know what software testing is
- 日期工具类(不定时更新)
- 9D电影是怎样的?(+维度空间常识)
- Progress-进度条
- 思维意识转变是施工企业数字化转型成败的关键
- metric_logger小解
- 高级性能测试系列《24. 通过jdbc执行sql脚本》
- Hospital online inquiry source code hospital video inquiry source code hospital applet source code
猜你喜欢
Imitation Jingdong magnifying glass effect (pink teacher version)
迷你高尔夫球场:伦敦休闲旅游好去处
新手必看,点击两个按钮切换至不同的内容
Processing strategy of message queue message loss and repeated message sending
Mysql高级篇学习总结7:Mysql数据结构-Hash索引、AVL树、B树、B+树的对比
Exness in-depth good article: dynamic series - Case Analysis of gold liquidity (V)
M2dgr: slam data set of multi-source and multi scene ground robot (ICRA 2022)
教程篇(5.0) 09. RESTful API * FortiEDR * Fortinet 网络安全专家 NSE 5
ICDE 2023|TKDE Poster Session(CFP)
教程篇(5.0) 10. 故障排除 * FortiEDR * Fortinet 網絡安全專家 NSE 5
随机推荐
Excel查找一列中的相同值,删除该行或替换为空值
数据降维——因子分析
Progress-进度条
Use MNIST in tensorflow 2_ 784 data set for handwritten digit recognition
Processing strategy of message queue message loss and repeated message sending
Excel finds the same value in a column, deletes the row or replaces it with a blank value
UML class diagram
Imitation Jingdong magnifying glass effect (pink teacher version)
Emmet基础语法
Markdown basic grammar
[test development] software testing - concept
reduce--遍历元素计算 具体的计算公式需要传入 结合BigDecimal
【JVM调优实战100例】02——虚拟机栈与本地方法栈调优五例
27: Chapter 3: develop Passport Service: 10: [registration / login] interface: after the registration / login is OK, save the user session information (uid, utoken) to redis and cookies; (one main poi
Gstore weekly gstore source code analysis (4): black and white list configuration analysis of security mechanism
2022 compilation principle final examination recall Edition
ICDE 2023|TKDE Poster Session(CFP)
论文导读 | 关于将预训练语言模型作为知识库的分析与批评
Mini Golf Course: a good place for leisure and tourism in London
PHP非对称加密方法私钥及公钥加密解密的方法