Skip to content

Instantly share code, notes, and snippets.

@zxkletters

zxkletters/循环宏

Last active Dec 23, 2015
Embed
What would you like to do?
定义for循环宏
#include <stdio.h>
#define foreach_range10 int i; \
for(i=0;i<10;i++){\
printf("%d\n",i);\
}
main() {
foreach_range10;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment