Introduction To Programming

Slides:



Advertisements
Similar presentations
Lecture Computer Science I - Martin Hardwick Strings #include using namespace std; int main () { string word; cout
Advertisements

IT253: Computer Organization Lecture 6: Assembly Language and MIPS: Programming Tonga Institute of Higher Education.
Introduction to C++ Programming. A Simple Program: Print a Line of Text // My First C++ Program #include int main( ) { cout
 C++ programming facilitates a disciplined approach to program design. ◦ If you learn the correct way, you will be spared a lot of work and frustration.
INTRODUCTION T.Najah Al_Subaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System CS240.
What Data Do We Have? Sections 2.2, 2.5 August 29, 2008.
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.
1 9/1/06CS150 Introduction to Computer Science 1 What Data Do We Have? CS 150 Introduction to Computer Science I.
CS31: Introduction to Computer Science I Discussion 1A 4/2/2010 Sungwon Yang
1 September 6, 2005CS150 Introduction to Computer Science I What Actions Do We Have Part 1 CS150 Introduction to Computer Science I.
1 8/30/06CS150 Introduction to Computer Science 1 Your First C++ Program.
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
COMPUTER PROGRAMMING. Introduction to C++ History Merges notions from Smalltalk and notions from C The class concept was borrowed from Simular67 Developed.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Chapter 3 Getting Started with C++
Copyright 2006 Addison-Wesley Brief Version of Starting Out with C++ Chapter 2 Introduction to C++
C++ Basics Structure of a Program. C++ Source Code Plain text file Typical file extension .CPP Must compile the C++ source code without errors before.
Program A computer program (also software, or just a program) is a sequence of instructions written in a sequence to perform a specified task with a computer.
1 CISC181 Introduction to Computer Science Dr. McCoy Lecture 1 February 8, 2005.
Week 1 Algorithmization and Programming Languages.
CHAPTER 2 PART #1 C++ PROGRAM STRUCTURE 1 st semester H 1 King Saud University College of Applied studies and Community Service Csc 1101 By:
First steps Jordi Cortadella Department of Computer Science.
Chapter 2 part #1 C++ Program Structure
1 8/31/05CS150 Introduction to Computer Science 1 Hello World!
Introduction to C++.  Computers: CPU, Memory & Input / Output (IO)  Program: Sequence of instructions for the computer.  Operating system: Program.
12/14/2016CS150 Introduction to Computer Science 1 Announcements  Website is up!   All lecture slides, assignments,
1 Structure of Simple C++ Program Chapter 1 09/09/13.
1 8/30/06CS150 Introduction to Computer Science 1 Your First C++ Program.
Software Engineering Algorithms, Compilers, & Lifecycle.
Linux CSE 1222 CSE1222: Lecture 1BThe Ohio State University1.
Lecture 4 Computer Programming // sample C++ program #include using namespace std; int main() { cout
Introduction to Programming
CHAPTER 2 PART #1 C++ PROGRAM STRUCTURE
What Actions Do We Have Part 1
ANNOUNCEMENT The missed lecture will be made up this Monday evening in the Tech PC classroom (MG51). A tentative time interval is 6:30-8:00. The exact.
Introduction to C++ Programming Language
CS-103 COMPUTER PROGRAMMING
Computing Fundamentals
Chapter 2 part #1 C++ Program Structure
Beginning C++ Programming
Introduction to Programming
Introduction to Programming
CS149D Elements of Computer Science
CS150 Introduction to Computer Science 1
Programming 1 (CS112) Dr. Mohamed Mostafa Zayed 1.
Govt. Polytechnic,Dhangar
Intro to Programming Week # 2 Variables/Data type Lecture # 4 & 5
Introduction to C++ Programming
Introduction To Programming
CS150 Introduction to Computer Science 1
Introduction To Programming
Chapter 2: Introduction to C++.
Introduction To Programming
Life is Full of Alternatives
Salam & Hello! I am Muhammad Meer Hazaar Khan
Introduction To Programming
Introduction To Programming
Salam & Hello! I am Muhammad Meer Hazaar Khan
What Actions Do We Have Part 1
C Programming Pointers
Life is Full of Alternatives
Using string type variables
COMS 261 Computer Science I
Salam & Hello! I am Muhammad Meer Hazaar Khan
Introduction to Programming - 1
Chapter 1 c++ structure C++ Input / Output
Reading from and Writing to Files Part 2
system and network administration
Introduction to Algorithms and Programming COMP151
Chapter 2 part #1 C++ Program Structure
Presentation transcript:

Introduction To Programming :Author: Muhammad Meer Hazaar Khan Introduction To Programming

Salam & Hello! I am Muhammad Meer Hazaar Khan Alhamdolilah A licensed professional engineer a schooled and skilled in the application of engineering discipline to the creation of software and seeking to share my knowledge and experience with students . You can find me at CS Department Government College University Layyah Campus or meerhazaarkhan@yahoo.com

Some Words, Muhammad Meer Hazaar Khan “Freelancing & Enterprenuership“. LinkedIn Profile: https://www.linkedin.com/in/muh ammad-meer-hazaar-khan- 6b11ab96/ Upwork Profile: https://www.upwork.com/freelan cers/~01c0fdce3eda554427 YouTube Channel: https://www.youtube.com/chan nel/UC0Ifqps33SDm5LdYTbEkO1A ?view_as=subscriber “Engineering Degree". B.S.C Software Engineering University And Engineering And Technology Taxila Approved By PEC & Washington Accord U.S.A M.S Degree M.S Computer Science Institute Of Southern Punjab Research Area: Semantic Web Gold Medalist Muhammad Meer Hazaar Khan @ Registered Software Engineer Pakistan Engineering Council No Comp 11516 Lecturer Computer Science Government College University Faisalabad Layyah Campus Freelancer at Upwork Enterprenuer More info on how to find and understand the lectures and the blogs post at Official Website: http://thestackunderflow.com/. .

Seeking knowledge is an obligation upon every Muslim” (Sunan Ibn Majjah, 224)

Let’s start with the first set of slides 1 Basics OF Programming Let’s start with the first set of slides

Text Book Object Oriented Programming in c++ any updated Edition by Robert Lafore

Computer Science computer science is the study of automating algorithmic processes that can measure.

First Program #include "stdafx.h" #include<iostream> using namespace std; int main() { cout <<"Hello World"; getchar(); }

Namespace The line using namespace std; tells the compiler to use the std namespace. Namespaces are a relatively recent addition to C++. a namespace is a container for a set of identifiers (also known as symbols, names) Namespaces provide a level of direction to specific identifiers, thus making it possible to distinguish between identifiers with the same exact name.

main() • The next line // main() is where program execution begins. is a single- line comment available in C++. • Single-line comments begin with // and stop at the end of the line

int main() The line int main() is the main function where program execution begins.

cout The next line cout << "This is my first C++ program."; causes the message "This is my first C++ program" to be displayed on the screen.

return 0; The next line return 0; terminates main()function and causes it to return the value 0 to the calling process.

Whitespace in C++: • A line containing only whitespace, possibly with a comment, is known as a blank line, and C++ compiler totally ignores it. • int age;

Comments • /* This is a comment */ • /* C++ comments can also • * span multiple lines • */

Data Types • While doing programming in any programming language, you need to use various variables to store various information. • Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in memory