Objective-C second day of study (BASICS)

Source: Internet
Author: User

2.2

2.2.1 Functions

2.2.2 define functions

2.2.3 implementation and interface:

1. Create an interface file for the Unit

2. Create an implementation file

3. You need to modify the file that calls the function to include the interface file of the unit.

 

Note: If the interface file is part of your project or you have created it, use quotation marks when specifying the Import Statement. Otherwise, if the interface file is a third-party framework or a part of the framework provided by Apple, brackets should be used.

 

 

2.2.4. link implementation file.

2.3 Control Program flow. Two methods: 1. condition control 2. loop control.

 

2.3.1 use conditional statement 1. if-else 2. Use the Three-object operator. 3. Use switch 4. Select conditional statements

 

2.3.2 loop statement: for Loop, while loop. Do-while LOOP, enhanced for Loop

 

2.4 create a calculator.

 

 

 

Note: similar to java, java

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.