Download presentation
Presentation is loading. Please wait.
2
Introduction To Programming
:Author: Muhammad Meer Hazaar Khan Introduction To Programming
3
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
4
Some Words, Muhammad Meer Hazaar Khan
“Freelancing & Enterprenuership“. LinkedIn Profile: ammad-meer-hazaar-khan- 6b11ab96/ Upwork Profile: cers/~01c0fdce3eda554427 YouTube Channel: 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: .
5
Seeking knowledge is an obligation upon every Muslim”
(Sunan Ibn Majjah, 224)
6
Let’s start with the first set of slides
1 Basics OF Programming Let’s start with the first set of slides
7
Text Book Object Oriented Programming in c++ any updated Edition by Robert Lafore
8
Computer Science computer science is the study of automating algorithmic processes that can measure.
9
First Program #include "stdafx.h" #include<iostream>
using namespace std; int main() { cout <<"Hello World"; getchar(); }
10
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.
11
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
12
int main() The line int main() is the main function where program execution begins.
13
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.
14
return 0; The next line return 0; terminates main()function and causes it to return the value 0 to the calling process.
15
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;
16
Comments • /* This is a comment */ • /* C++ comments can also
• * span multiple lines • */
17
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.