当前位置:网站首页>Macro application connector\
Macro application connector\
2022-06-25 10:18:00 【Large factory oriented programming】
Connector \ That is, one line of code can be written on multiple lines , When using macros , Can improve the readability of the code
#include <stdio.h>
// When you define a macro , There can be spaces before the next line , however \ After that, it is better not to have blank space ,
#define swap(a,b)\ {
\ int t=a;\ a=b; \ b=t;\ } \
// When defining a function macro, you must add {}, Or use do-while(0) Structure , Recommended do while form
//#define The directive can unload only one line , No use {}. It's all like this , To write to multiple lines , Must use \, Put everything together in one line
// Although it may not be necessary \, But it's not readable
int main()
{
pri\
ntf("hello");//\ No space after , There should be no spaces before the next line i,
// For consecutive words ( Function name , keyword , Variable time )
int a=1,b=2,c=3;
swap(a,b);
return 0;
}
边栏推荐
- Jetpack compose layout (II) - material components and layout
- How to "transform" small and micro businesses (I)?
- Free applet making tool, how to make wechat applet
- Flutter Gaode map privacy compliance error
- How to make small programs on wechat? How to make small programs on wechat
- How do wechat applets make their own programs? How to make small programs on wechat?
- Minio基本使用与原理
- Oracle查询自带JDK版本
- Fluent: target support file /pods runner / pods runner frameworks Sh: permission denied - stack overflow
- Fluent creates, reads and writes JSON files
猜你喜欢
String implementation strstr()
Bitmap is converted into drawable and displayed on the screen
Unique Wulin, architecture selection manual (including PDF)
Shardingsphere proxy 4.1 sub database and sub table
Mongodb's principle, basic use, clustering and partitioned clustering
Flask blog practice - archiving and labeling of sidebar articles
Request&Response有这一篇就够了
Flutter dialog: cupertinoalertdialog
Yolov5 changing the upper sampling mode
Pytorch_ Geometric (pyg) uses dataloader to report an error runtimeerror: sizes of tenants must match except in dimension 0
随机推荐
Shardingsphere proxy 4.1 Sous - base de données sous - table
Kotlin advanced set
Best producer consumer code
Force buckle -104 Maximum depth of binary tree
How much does a small program cost? How much does a small program cost? It's clear at a glance
P2P network core technology: Gossip protocol
Mengyou Technology: six elements of tiktok's home page decoration, how to break ten thousand dollars in three days
Notes on writing questions in C language -- monkeys eat peaches
Basic use and cluster construction of consult
CyCa 2022 children's physical etiquette primary teacher class Shenzhen headquarters station successfully concluded
Use evo
The path of Architects
Mqtt beginner level chapter
Deep understanding of JVM - JVM memory model
How much does a wechat applet cost? Wechat applet development and production costs? Come and have a look
(forwarding articles) after skipping multiple pages, shuttle returns to the first page and passes parameters
How to develop wechat applet? How to open a wechat store
Neat Syntax Design of an ETL Language (Part 2)
Download the arm64 package of Debian on X86 computer
Tiktok brand goes to sea: both exposure and transformation are required. What are the skills of information flow advertising?