OBJECTIVE-C Kit Kat--writing objective-c in Chinese

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.