📘BATCH OF STUDENT
الذهاب إلى القناة على Telegram
📚https://t.me/Book_storbot Freshman books ?contract me @Job_149 $$ https://t.me/tumimfamil
إظهار المزيد1 771
المشتركون
لا توجد بيانات24 ساعات
-57 أيام
-2430 أيام
أرشيف المشاركات
1 771
part 2
in previous lesson we seen about
approach of c++ language
first list(procedural )
second modules:
large project our data separate each other
function and data separated
gen.pin() pin
difficult to conceptualize.
difficult to modify
3 oop(object oriented programmer)
bind function and data together create class(blueprint or object) encapsulation
class (does not take space in RAM only blue print not actual House)
member variable and member function
class(keyword) house (class name){
we will create block(
write
" int length, breadth // member function
void setdata(int x, int y)
{length=x ; breadth = y; }
void area ()
{ cout << length* breadth; }
and data memebere )
}......
1 771
programming 2
chapter 1
Introduction
''we have three approach
1, procedural progreamming
list of instraction in a single block
ex
#include <iostream>
using namespace std;
void main ()/ int main()
{
list some part of your problem;
returb 0;
}
this approach isn't figure out big task
but only to solve small case
it suitable for solve some part
2, modular programming
in this procedure we divide into functional
eg
void main ()
{
function1 ()
function2 ()
}
also this not comfortable with relat real world
it difficult to variable(local) .
data remain alive within module
two type variable
global and local
local : use in specific place
global : use anywhere (through out program)
modern application create global variable
eg ETM application
have some function
withdrawal()
check_balance()
gen.pin()
mini stmt()
also having some global variable
pin(before withdrawal using your pin)
balance(after withdrawal how much money you want)
name
3.... cont
1 771
One app for all your Word, Excel, PowerPoint and PDF needs. Get the Microsoft 365 app: https://aka.ms/GetM365
