Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Chapter 2: Understanding Basic Syntax 73 After you do this, compile the application and start your terminal program. You should be able to find the compiled application in your project directory under the subdirectory build/Debug. Enter that subdirectory, and run your new program, as shown in Figure 2.8. Be sure when you run it to enter the single quotes just as I have shown here. This causes the console to ignore the `*' character as a wildcard and to just pass it to your program. This program combines all the information from these first two chapters: for loops, conditional statements, functions, working with basic types, and so on. Figure 2.8 The output of the program Summary In this chapter, you've learned all the basic syntax for procedural programming in Objective-C.