iOS Development Design Cinema

Source: Internet
Author: User
Tags ticket

Here we first give a general analysis of needs, in the course of software development

will improve some functions as the needs change.

  /* Exercise 8: In our real life we have to go to the cinema to see a movie, will experience a painful process, that is to queue to buy tickets, if we can put this process on the mobile phone with software to complete, it will greatly reduce the pain we watch the movie queue process, so we will be this process software.     Requirements Analysis:        1. To have a video message        2. Select the movie I want to see        3. Select a seat        4. Print ticket information    Find object    design class    name: Cinema    Properties: Name, fare, row number, seat number, Hall    method: Select Movie , select a room, select a seat, print a ticket */#import <Foundation/Foundation.h> #import "Cinema.h" #import "People.h" #import "Film.h" # Import "Ticket.h" int main (int argc, const char * argv[]) {    cinema * cinema = [[Cinema alloc]init];    NSLog (@ "%@", cinema);        People * people = [[People alloc]init];    NSLog (@ "%@", people);        Film * Film = [[Film alloc]init];    NSLog (@ "%@", film);        Ticket * Ticket = [[Ticket alloc]init];    NSLog (@ "%@", ticket);                return 0;}



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

iOS Development Design Cinema

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.