Saturday, November 28, 2020

Encapsulation implementation in c++ with bank example

#include<iostream>//Encapsulation in OOP with C++ Language
using namespace std;
class bank{//Class Declaration
private:
         double balance;//Data Member
public://Access Specifier
        void setValue(double b)//Member Function
        {
                balance = b;
        }
        void show(){////Member Function
                cout<<balance<<endl;
        }
};
int main()
{
        bank obj;
        obj.setValue(1000.50);
        obj.show();
        return 0;
}
Youtube link: https://www.youtube.com/watch?v=o7z06_HlSI8&list=PLhGaMw0JdiTKfgMpw6xI1Dh_2RYyPKszj&index=16

Friday, November 27, 2020

Data abstraction in c++ example with header file abstraction and specifier abstraction

//Data Abstraction Using Access Specifiers
#include<iostream>
#include<math.h>
using namespace std;
class abstract{//Class Declaration
private://Private Access Specifier
        int num1, num2;//Data Members
public://Public Access Specifier
        void setValue(int a, int b){//Member Function
                num1 = a;
                num2 = b;
        }
        void display()//Member Function
        {
                cout<<num1<<" "<<num2<<endl;
        }
};
int main()//Main Function
{
        abstract obj;//Object creation
        obj.setValue(10, 20);//Function Calling
        obj.display();//Function Calling

        int res = pow(4, 3);
        cout<<res<<endl;
        return 0;
}

Monday, November 16, 2020

C programming output checking-05 || Recursion function example with prop...


IT job preparation. Bank job preparation. Govt. it job preparation Output checking of c program. Recursion function with proper description in c/cpp. How does the recursion function work? Recursion in c programming with two parameters.

Sunday, November 15, 2020

C programming output checking-04 || IT job preparation || Infinite Loop ...


Govt. it job preparation Output checking of a c program. Running a loop for infinite time when the condition is not true.

C programming output checking-02 || IT job preparation || Floor and ceil...


Output checking of a c program.
Finding floor and ceil value of a negative number in c.
C program to find the floor value of a number.
C program to find the ceil value of a number.
C program output checking for finding floor and ceil value.

C programming output checking-02 || IT job preparation || Function calli...


#best_programming_solution
#it_job_preparation
#output_of_c_program
#Alamgir_Hossain
IT job preparation.
Bank job preparation.
Govt. it job preparation
Output checking of c program.
Calling a function by the call by value.
Situation when the swap function is not working in c/cpp.
C program output checking using the swap function.

C programming output checking-01 || IT job preparation || Programming in...


#best_programming_solution
#it_job_preparation
#output_of_c_program
#Alamgir_Hossain
IT job preparation.
Bank job preparation.
Govt. it job preparation
Output checking of c program
What is the output of the given c program??

Saturday, November 14, 2020

তাওহীদি প্রেরণার অবমাননা -আলমগীর হোসেন

 

তাওহীদি প্রেরণার অবমাননা

-আলমগীর হোসেন

 

 

মানবতার মুক্তির দূত

রাহমাতুল্লিল আলামিন

যার আগমনে আত্মহারা সব, বিয়োগে স্তব্ধতা

যাকে উপেক্ষায়

বিশ্ব মুসলিম হৃদয় রক্তাক্ত, চারিদিকে চঞ্চলতা ।।

 

ওরা ভুলেছে

নিদারুণ পরিণতি ।

যারা করেছিলো নিন্দা, দিয়েছিলো গালি

নিকৃষ্টতায় ছিন্নভিন্ন হয়েছে

ওদের সকল অস্থি, সম্পত্তি ।।

 

জাগো আবারও মুসলিম

দুনিয়ার মুসলমান ।

রাসুলকে(সাঃ) দিয়েছে অবজ্ঞা, করেছে অপমান

                তুমি এখনও জীবিত

তোমার দেহে প্রাণ, শিরায় রক্ত বহমান ।।

 

নহে ব্যাঙ্গ-বিদ্রুপ

ওহে আশরাফুল মাখলুকাত ।

মুশরিক-মুনাফিকে মিলবে না শান্তি, এহকালে-পরকাল

লানতে ধ্বংস অনিবার্য

এ যে বিধাতার শপথ, চিরন্তন সত্য ।।

 

ফিরে এসো ভাই,

ফিরে এসো সব ।

নবীর আদর্শে,যা সুশীতল ছায়াতল

কর-প্রচার, করো প্রসার

আল্লাহ্‌ মনোনীত যে একমাত্র সত্য জিবনা-দর্শন তা হলো ইসলাম ।।

 



 

 

মোঃ আলমগীর হোসেন

লেখক, প্রভাষক, কম্পিউটার বিজ্ঞান ও প্রকৌশল বিভাগ,

প্রাইম বিশ্ববিদ্যালয়, বাংলাদেশ ।।

How to change the name of main function in c/cpp programming??


How to change the name of main function in c/cpp programming??

#best programming solution
#interesting programming solution C programming is the basic building block of programming or building logic. if we want to run or compile a program, we need to write our code under the main function which name is "main". Is there any way to change the name of this main function? The answer is yes, we can change the name of the main function in c/CPP. From this tutorial, you will learn, how to change the name of the main function in c or CPP.

Friday, November 13, 2020

Swapping two numbers using c syntax, function and the concept of class a...


Swapping two numbers by using the third variable. Swapping two numbers by using function. Swapping two numbers by using the concept of object oriented programming with cpp/c++

#best programming solution
#interesting programming solution

CPP tutorial, Constructor overloading in object-oriented programming wit...


Constructor overloading in object-oriented programming with cpp/c++ What is an overloading constructor in oop with cpp? Constructor overloading in cpp/c++. Constructor overloading with proper example.
#best programming solution,
#interesting programming solution

For all this question answer go to this video.