Swift 2.0 Study Notes (day 11)-Data type What's the matter?

Source: Internet
Author: User

Original articles, welcome reprint. Reprint Please specify: Dongsheng's Blog

When we learn languages, we learn the types of data in this language, what are the types of data in Swift? Integer, float, Boolean, character, string these types are certain, where collections, enumerations, structs, and classes are also data types in Swift. Tuples are unique in swift.
Other types we may have known or heard about. Tuples are there in swift, what is it?
It is a data structure, which is widely used in mathematics. In computer science, tuples are a basic concept in a relational database, one record in a tuple table, and each column is a field. So in the two-dimensional table, tuples are also called records.
> now uses swift syntax to represent student tuples:
The first form of a notation
("1001", "Zhang San", 30, 90)
The second type of notation
Style= "MARGIN-LEFT:21PT;" > (ID: "1001", Name: "Zhang San", English_score:30, chinese_score:90)

Welcome to follow Dongsheng Sina Weibo @tony_ Dongsheng.
Learn about the latest technical articles, books, tutorials and information on the public platform of the smart Jie classroom

More Products iOS, Cocos, mobile design courses please pay attention to the official website of Chi Jie Classroom: http://www.zhijieketang.com

Luxgen Classroom Forum Website: http://51work6.com/forum.php



Swift 2.0 Study Notes (day 11)-Data type What's the matter?

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.