C Programming Lecture 3 : C Introduction 1 Lecture notes : courtesy of Woo Kyun and Chang Byung-Mo.

Slides:



Advertisements
Similar presentations
CSE 105 Structured Programming Language (C)
Advertisements

Module 6: Introduction to C Language ITEI102 Introduction to Programming Structure of C++ Program - Programming Terminologies - Microsoft Visual Studio.
Your First C++ Program Aug 27, /27/08 CS 150 Introduction to Computer Science I C++  Based on the C programming language  One of today’s most.
Three types of computer languages
Unix Continuum of Tools Do something once: use the command line Do something many times: –Use an alias –Use a shell script Do something that is complex.
ECE 353 WinAVR and C Debugging Tutorial By Adam Bailin ECE 353 Fall ‘06.
1 Key Concepts:  Why C?  Life Cycle Of a C program,  What is a computer program?  A program statement?  Basic parts of a C program,  Printf() function?
CS 1400 Using Microsoft Visual Studio 2005 if you don’t have the appropriate appendix.
Course Introduction and Getting Started with C 1 USF - COP C for Engineers Summer 2008.
1 Chapter Two Introduction to the Programming Language C.
C/C++ Compiling.
Introduction to C. A Brief History Created by Dennis Ritchie at AT&T Labs in 1972 Originally created to design and support the Unix operating system.
Chapter 1 Introduction to Programming. Computer Hardware CPU Memory –Main or primary –Secondary or auxiliary Input device(s) Output device(s)
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
Welcome In The World Of ‘C’.  TEXT BOOK: Programming in ANCI ‘C By: E Balagurusamy. TMH  Reference Books: 1) The ‘C Programming Language By: Kernighan.
Introduction to C Programming. A Brief History u Created by Dennis Ritchie at AT&T Labs in 1972 u Originally created to design and support the Unix operating.
Programming Design Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
CS Tutorial 1 Getting Started with Visual Studio 2012 (Visual Studio 2010 are no longer available on MSDNAA, please choose Visual Studio 2012 which.
Instructor: Tina Tian. About me Office: RLC 203A Office Hours: Wednesday 1:30 - 4:30 PM or .
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
1 C/C++ UM/MCSR. 2 Logging into the system using ssh Logging into the system from Windows: –Start the secure shell client: Start->Programs->SSH.
CSCI 171 Presentation 1. Computer Software System Software –Operating systems –Utility programs –Language compilers Application Software.
CSE 2541 – Advanced C Programming Instructor: Yang Zhang
CSC 215 : Procedural Programming with C C Compilers.
Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Programmers combine theory and practice:
Programming With C.
Engineering Computing I Chapter 1 – Part A A Tutorial Introduction.
Introduction to C++ Programming Language
Introduction to Computer Programming in c
Computer Science I How to Configure Visual Studio.NET 2003 for C++ Colin Goble.
System Programming - LAB 1 Programming Environments.
Programming with Visual C++ A short review of the process.
Programming with Visual Studio 2005.NET A short review of the process.
Using Microsoft Visual Studio C++ Express 2005 Name: Dr Ju Wang Ashwin Belle Course Resource:
N from what language did C++ originate? n what’s input, output device? n what’s main memory, memory location, memory address? n what’s a program, data?
Programming with Visual Studio.NET A short review of the process.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
CMSC 1041 Introduction to C Creating your first C program.
Lab00-Getting Started with VC Launch VS 2005 Launch Visual Studio 2005 – Start > All Programs > Microsoft Visual Studio 2005 > Microsoft Visual.
Department of Electronic & Electrical Engineering Introduction to C - The Development cycle. Why C? The development cycle. Using Visual Studio ? A simple.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 1 – Introduction to C.
Introduction to C Programming Language. History of C  C was evolved by Dennis Ritchie at AT&T Bell Laboratories in early of 1970s  Successor of: ALGOL.
L071 Introduction to C Topics Compilation Using the gcc Compiler The Anatomy of a C Program Reading Sections
CS 201 Lecture 1 (b) Using an IDE Tarik Booker CS 201: Introduction to Programming California State University, Los Angeles.
Tutorial 1 Writing Your First C++ Program CSC1110C Introduction to Computer Programming By Paul Pun Acknowledgement: Special thanks to Dr. Michael Fung.
1 CS 192 Lecture 4 Winter 2003 December 8-9, 2003 Dr. Shafay Shamail.
Introduction to C Topics Compilation Using the gcc Compiler
Computer Terms Review from what language did C++ originate?
Instructor: Chien-Ho Ko
Microprocessor and Assembly Language
Computer Programming Lecturer: Ir Dr Frank H.F. LEUNG
Computer Engineering 1nd Semester
Introduction to C Topics Compilation Using the gcc Compiler
Welcome In The World Of ‘C’.  TEXT BOOK: Programming in ANSI ‘C By: E Balagurusamy. TMH  Reference Books: 1) The ‘C Programming Language By: Kernighan.
and Executing Programs
Computer Science 210 Computer Organization
សេចក្តីផ្តើមពី Programming
مباني كامپيوتر و برنامه سازي
1. Open Visual Studio 2008.
Starting a project in VisualDSP++
Govt. Polytechnic,Dhangar
Creating your first C program
2008/09/29: Lecture 7 CMSC 104, Section 0101 John Y. Park
Double click Microsoft Visual Studio 2010 on the Computer Desktop
The visual studio window
Computer Terms Review from what language did C++ originate?
C Programming.
Introduction to C Topics Compilation Using the gcc Compiler
Presentation transcript:

C Programming Lecture 3 : C Introduction 1 Lecture notes : courtesy of Woo Kyun and Chang Byung-Mo

C Programming Language Designed by Dennis Ritchie (1972) used for developing UNIX OS C features Structured programming, modular programming Highly portable Efficient (fast) C has the features of high level language and low level language 2 Dennis Ritchie

simple C program (hello.c) 3 output: Hello, World !

C compiler compiler? Programmer can use high level language such as C CPU knows machine language (assembly language) C compiler Commercial compiler: Microsoft Visual C/C++ (ver. 6.0) Free compiler: gcc 4 Compiler C program int main… Machine language …

Visual Studio 6.0 Microsoft Visual C Project window Editing window Message window 5

Program Development  Creating Project  Adding Files  Editing Program  Compile&Build  Execution&Debugging 6

Creating a Project (1/5)  File  New Projects tab Win32 Console Application  Location  Project Name  OK  Finish & OK 7

Creating a Project (2/5)  File  New  Location Folder selection  Project Name  OK  Finish & OK 8

Creating a Project (3/5)  File  New  Location  Project Name Hello  OK  Finish & OK 9

Creating a Project (4/5)  File  New Win32 Console Application  Location  Project Name  OK  Finish & OK 10

Creating a Project (5/5) Hello project is created 11

Adding Files (1/3)  File  New Files tab C++ Source File  filename  OK 12

Adding Files (2/3)  File  New  filename Add to project hello.c  OK 13

Adding Files (3/3) Source file hello.c is added to Hello project 14

File Edit 15

Visual Studio 2008 : Creating Command-Line Program

Visual Studio 2008 Creating Command-Line Program

Compile & Build compile  Compile hello.c Object file (.obj) is created Build  Build Hello.exe Link : link object files and create a executable file (.exe) 21

Compile-time error Grammar error. Object file can not be created Double click error message line 22

Programming Process 23 Source files (.c) temporary program texts Object files Executable file (.exe) preprocessor compiler linker library files

gcc / g++ Free C/C++ compiler developed by GNU 24