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 the language, we learn the data type of the language,SwiftWhat are the data types in? Integer, float, Boolean, character, string these types are certain, where collections, enumerations, structs, classes are alsoSwiftthe data type in the. Tuples areSwiftunique in the.

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 use swift syntax means student tuples are:

The first form of a notation

("1001", " Zhang San", (+)                   

The second type of notation

(ID: "1001", Name: " Zhang San", 中文版_sCore:-CHinese_sCore: +)


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

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

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.