TAILIEUCHUNG - C Programming # Rob Miles Edition 2.1 January 2011

t is very difficult to determine what are the most popular of modern programming languages. Some languages are very popular for particular kinds of applications (., COBOL is still strong in the corporate data center[citation needed], often on large mainframes, FORTRAN in engineering applications, scripting languages in Web development, and C in embedded applications), while some languages are regularly used to write many different kinds of applications. Also many applications use a mix of several languages in their construction and use. New languages are generally designed around the syntax of a previous language with new functionality added (for example C++. | C Programming Rob Miles Edition January 2011 Department of Computer Science EEzE zHEEz zz zzETzEz University of HultxH E Contents Introduction 5 Reading the Getting a copy of the 1 Computers and Programs 6 Programs and Programming C . . .14 2 Simple Data Processing 18 A First C Program . 18 Manipulating Data . 26 W riting a 3 Creating Programs 52 Variables and Exceptions and Errors. 65 The Switch Using 4 Creating Solutions 76 Our Case Study Friendly Enumerated Types. .76 Objects Structures and References . 82 Designing With Static The Construction of From Object to Obj ect The power of strings and Building a Bank. 129 5 Advanced Programming 134 Generics and Storing Business Business Objects and A Graphical User Using Threads and i Structured Error Program The End 6 Glossary of Terms 184 Abstract. 184 Accessor. 184 Base . 184 Call . 184 Class . 184 Code Reuse . 185 Cohesion . 185 Collection. 185 Compiler . 185 Component. 185 Constructor . 185 Creative Functional Design Globally Unique Identifier GUID .187 Machine Source Syntax .