Artifice refers to a skill and a product that is too kit and useless.
Reprint please specify the source http://blog.csdn.net/uxyheaven/article/details/46391771
We can define basic operators and types with macros.
#define 加 +#define 减 -#define 乘 *#define 除 /#define 大于 >#define 小于 <#define 对比 ==#define 等于 =typedef NSInteger 整数型;typedef NSString 字符串型;
And that's how it's written.
整数型 数字 等于 (1 加 2 乘 3 减 1) 除 2; 打印(@"%ld", 数字);
If we're defining some basic control statements,
#pragma mark -#define 循环 for#define 如果 if#define 那么#define 否则 else#define 否则如果 else if
You can use Chinese to make some conditional statements, loop statements
整数型 数字 等于 1; 如果 (数字 对比 1) 那么 { 打印(@"1"); } 否则如果(数字 对比 2) { 打印(@"2"); } 否则 { 打印(@"3"); } 循环(整数型 数字 等于 0; 数字 小于 5; 数字++) { 打印(@"%ld", (long)数字); }
However, there is an egg to use.
The above code can be downloaded here to
GitHub
OBJECTIVE-C Kit Kat--writing objective-c in Chinese