>> » » » Sams Teach Yourself C# in 24 Hours by James D. Foxall Publisher: Sams 2002 ISBN/ASIN: ISBN-13: 877 Number of pages: 720 Description: 24 structured lessons that provide a light, but thorough introduction to C#. James Foxall moves beyond the pure syntax covered in existing books, to guide readers step-by-step through a cohesive presentation of the basics of C#. Once the basics are understood, Foxall shows the reader how to apply this knowledge to real-world Windows programming tasks using C#. ![]() Download or read it online for free here: (online preview). Hour 1 - Getting Started Sams Teach Yourself C in 24 Hours|| Hour 1 - Getting Started A journey of a thousand miles is started by taking the first step. Chinese proverb High thoughts must have high language. Aristophanes Welcome to Teach Yourself C in 24 Hours. In this first lesson you'll learn the following: • What C is • Why you need to learn C • The ANSI standard • Hardware and software required in order to run the C program C is a programming language. The C language was first developed in 1972 by Dennis Ritchie at AT&T Bell Labs. Ritchie called his newly developed language C simply because there was a B programming language already. (As a matter of fact, the B language led to the development of C.) C is a high-level programming language. In fact, C is one of the most popular general-purpose programming languages. In the computer world, the further a programming language is from the computer architecture, the higher the language's level. You can imagine that the lowest-level languages are machine languages that computers understand directly. The high-level programming languages, on the other hand, are closer to our human languages. (See Figure 1.1.) Figure 1.1. The language spectrum. High-level programming languages, including C, have the following advantages: • Readability: Programs are easy to read. • Maintainability: Programs are easy to maintain. • Portability: Programs are easy to port across different computer platforms. The C language's readability and maintainability benefit directly from its relative closeness to human languages, especially English. Each high-level language needs a compiler or an interpreter to translate instructions written in the high-level programming language into a machine language that a computer can understand and execute. Different machines may need different compilers or interpreters for the same programming language. For instance, I use Microsoft's C compiler to compile the C programs in this book for my personal computer (PC). If I need to run the C programs on a UNIX-based workstation, I have to use another type of C compiler to compile these programs. Therefore, the portability of programs written in C is realized by re-compiling the programs with different compilers for different machines. (See Figure 1.2.) Figure 1.2. Porting programs written in C into different types of computers. The Computer's Brain You may know that the brain of a computer is the central processing unit (CPU). Some computers may have more than one CPU inside. A CPU has millions of transistors that make use of electronic switches. C: Learn C Programming Language In 24 Hours Or Less! - Kindle edition by AZElite Publishing. Download it once and read it on your Kindle device, PC, phones or tablets. Use features like bookmarks, note taking and highlighting while reading C: Learn C Programming Language In 24 Hours Or Less! Introduction Contents About this Book Acknowledgments. Part I - The Basics of C. Hour 1 - Getting Started Hour 2 - Writing Your First C Program Hour 3 - The Essentials of C Programs. The electronic switches have only two states: off and on. (Symbolically, 0 and 1 are used to represent the two states.) Therefore, a computer can only understand instructions consisting of series of 0s and 1s. In other words, machine-readable instructions have to be in binary format. However, a computer program written in a high-level language, such as C, Java, or Perl, is just a text file, consisting of English-like characters and words. We have to use some special programs, called compilers or interpreters, to translate such a program into a machine-readable code. That is, the text format of all instructions written in a high-level language has to be converted into the binary format. The code obtained after the translation is called binary code. Prior to the translation, a program in text format is called source code. The smallest unit of the binary code is called a bit (from binary digit), which can have a value of 0 or 1. 8 bits make up one byte, and half a byte (4 bits) is one nibble. In addition, the C language has other advantages. Programs written in C can be reused. You can save your C programs into a library file and invoke them in your next programming project simply by including the library file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2019
Categories |