430 likes | 638 Views
Module 6: Introduction to C Language ITEI102 Introduction to Programming. Structure of C++ Program - Programming Terminologies - Microsoft Visual Studio 2010 - The C++ Screen - Console Output and Escape Sequences - Console Input - Data Types. Introduction to C > Microsoft Visual C++.
E N D
Module 6: Introduction to C Language ITEI102 Introduction to Programming Structure of C++ Program - Programming Terminologies - Microsoft Visual Studio 2010 - The C++ Screen - Console Output and Escape Sequences - Console Input - Data Types
Versions: • There are five current versions of Visual C++ available: • Microsoft Visual C++ 2010 Express Edition • (available as a free download at the MSDN site) • Microsoft Visual Studio 2010 Professional • Microsoft Visual Studio 2010 Team Foundation • Microsoft Visual Studio 2010 Premium • Microsoft Visual Studio 2010 Ultimate • Note: Visual C++ is included in Visual Studio.
Introduction to C language > Why use C? Introduction to Computer Programming6
Introduction to C language > Running C Programs> Executable Files
Program is created in the editor and stored on disk. Preprocessor program processes the code. Compiler creates object code and stores it on disk. Compiler Linker links the object code with the libraries, creates a.out and stores it on disk Primary Memory Loader Loader puts program in memory. Primary Memory CPU takes each instruction and executes it, possibly storing new data values as the program executes. Preprocessor Linker Editor Disk Disk Disk Disk Disk CPU . . . . . . . . . . . . Introduction to C language > Basics of a Typical C++ Environment • Phases of C++ Programs: • Edit • Preprocess • Compile • Link • Load • Execute Introduction to Computer Programming15
Introduction to C language > Structure of C programs > C’ Character set
Introduction to C language > Structure of C programs > Constants
Introduction to C language > Structure of C programs > Integer Constants
Introduction to C language > Structure of C programs > Real Constants
Introduction to C language > Structure of C programs > Real Constants
Introduction to C language > Structure of C programs > Character Constants
Introduction to C language > Structure of C programs > String Constants
Data Types, operators and Expressions> Data Types Introduction to Computer Programming33
Data Types, operators and Expressions> Data Types>Integer Number Variables Introduction to Computer Programming34
Data Types, operators and Expressions> Data Types>Decimal Number Variables Introduction to Computer Programming35
Data Types, operators and Expressions> Data Types> Character Variables Introduction to Computer Programming36
Data Types, operators and Expressions> Assignment Statement Introduction to Computer Programming37
Data Types, operators and Expressions> Global Variables Introduction to Computer Programming39
Data Types, operators and Expressions> Constant Data Types> Example program Introduction to Computer Programming41
Data Types, operators and Expressions> User defined data types
Data Types, operators and Expressions> Enumerated data types Introduction to Computer Programming43