Ios development and design cinema, ios development cinema
First, we will give you a rough requirement analysis.
Some functions will be improved as demand changes
/* Exercise 8: In our real life, when we go to the cinema to watch a movie, we will all go through a painful process, that is, waiting in line to buy tickets, if we can put this process on our cell phone and use software to complete it, it will greatly reduce the pain of our movie queuing process, so we need to use this process software. Requirement Analysis: 1. you must have an audio message. 2. select the movie I want to watch. 3. select a seat 4. print the ticket information to find the object design class name: cinema attributes: name, fare, number of rows, seat number, movie hall method: select a movie, a movie room, a seat, and 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 Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.