Deprecated: Optional parameter $i declared before required parameter $data is implicitly treated as a required parameter in /home4/aipsa9vw/public_html/blogs/wp-content/themes/voice/include/modules.php on line 4

Deprecated: Optional parameter $i declared before required parameter $data is implicitly treated as a required parameter in /home4/aipsa9vw/public_html/blogs/wp-content/themes/voice/include/modules.php on line 245

Deprecated: Optional parameter $output declared before required parameter $attr is implicitly treated as a required parameter in /home4/aipsa9vw/public_html/blogs/wp-content/themes/voice/include/snippets.php on line 431

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home4/aipsa9vw/public_html/blogs/wp-content/themes/voice/include/mega-menu.php on line 147

Warning: Cannot modify header information - headers already sent by (output started at /home4/aipsa9vw/public_html/blogs/wp-content/themes/voice/include/modules.php:4) in /home4/aipsa9vw/public_html/blogs/wp-includes/feed-rss2.php on line 8
AIPS – AIPS ACADEMY https://aipsacademy.com/blogs AIPS ACADEMY Abadganj Daltonganj palamu Jharkhand , Which provides classes For Computer Science 11th 12th BCA , Computer Courses any many more.. palamu's No.1 Institute Mon, 13 Feb 2023 02:45:51 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 https://aipsacademy.com/blogs/wp-content/uploads/2022/08/cropped-aips-logo-32x32.png AIPS – AIPS ACADEMY https://aipsacademy.com/blogs 32 32 Queue Data structure in C++ Best example https://aipsacademy.com/blogs/2023/02/13/queue-data-structure-in-c-best-example/ https://aipsacademy.com/blogs/2023/02/13/queue-data-structure-in-c-best-example/#respond Mon, 13 Feb 2023 02:45:50 +0000 https://aipsacademy.com/blogs/?p=498 What is Queue?

  • Queue is a liner data structure.it means elements in this data structure have a unique predecessor and a unique successor.
  • Queue follows First In First Out (FIFO) technique.
  • Initial value of Rear and Front is -1 which is known as centennial value.
  • When new Element is inserted in a Queue then Rear is Incremented by one and this term is known as Enqueue.
  • When  an element is deleted from a Queue then Front is Incremented by one and this term is known as Dequeue.
  • When there is no space for inserting new element and we try to insert then what situations comes known as Queue overflow i.e no space for insertion.
  • When there is no element in Queue and we try to delete then what situations comes known as Queue underflow i.e no element for deletion.
  • When Queue is full then Rear will be at size-1.
  • Queue can be represented or implemented in two ways.
  • Queue as an array
  • Queue as a linked list

Types of Queue

  1. Linear Queue
  2. Circular Queue
  3. Priority Queue

Linear Queue

Algorithm: Insert Operation on Queue

Step 1: If Rear=Max-1

Print “Overflow : Queue is full” and Exit

End If

Step 2: If Front=-1

Set Front =0

End If

Step 3: Rear=Rear+1

Step 4: Queue[Rear]=Element

Step 5: End

Algorithm: Delete Operation on Queue

Step 1: If Front=-1

Print “Underflow: Queue is empty” and Exit

End if

Step 2: Set Del_element=Queue[Front]

Step 3: If Front=Rear

Set Front=Rear=-1

Else

Front=Front+1

End If

Step 4: Return Del_Element

Step 5: End

]]>
https://aipsacademy.com/blogs/2023/02/13/queue-data-structure-in-c-best-example/feed/ 0
Stack Data structure in C++(Introduction, Algorithm, Program) https://aipsacademy.com/blogs/2023/02/13/stack-data-structure-in-cintroduction-algorithm-program/ https://aipsacademy.com/blogs/2023/02/13/stack-data-structure-in-cintroduction-algorithm-program/#respond Mon, 13 Feb 2023 02:40:29 +0000 https://aipsacademy.com/blogs/?p=494 What is STACK ?

  • Stack is a liner data structure.it means elements in this data structure have a unique predecessor and a unique successor.
  • Stack follows Last In First Out (LIFO) technique.
  • Initial value of Top is -1 which is known as centennial value.
  • When new Element is inserted then top is incremented by one and this term is known as PUSH.
  • When  an element is deleted then top is decremented by one and this term is known as POP.
  • When there is no space for inserting new element and we try to insert then what situations comes known as stack overflow i.e no space for insertion.
  • When there is no element in stack and we try to delete then what situations comes known as stack underflow i.e no element for deletion.
  • When stack is full then top will be at size-1.
  • Stack can be represented or implemented in two ways.
  • Stack as an array
  • Stack as a linked list

Algorithm: PUSH Operation on Stack

Step 1: If Top=Max-1

Print “Overflow : Stack is full” and Exit

End If

Step 2: Top=Top+1

Step 3: Stack[TOP]=Element

Step 4: End

Algorithm: POP Operation on Stack

Step 1: If TOP=-1

Print “Underflow: Stack is empty” and Exit

End if

Step 2: Set Del_element=Stack[Top]

Step 3: Top=Top-1

Step 4: Return Del_Element

Step 5: End

]]>
https://aipsacademy.com/blogs/2023/02/13/stack-data-structure-in-cintroduction-algorithm-program/feed/ 0
Data Structure class 12th Computer Science Best Concept https://aipsacademy.com/blogs/2023/02/13/data-structure-class-12th-computer-science-best-concept/ https://aipsacademy.com/blogs/2023/02/13/data-structure-class-12th-computer-science-best-concept/#respond Mon, 13 Feb 2023 02:34:16 +0000 https://aipsacademy.com/blogs/?p=490 Data Structure

  • Data Structure is an organized collection of data.
  • A data structure is a structured set of variables associated with one another in different ways.
  • The mathematical or logical model used to organize the data in main memory, is called a data structure.
  • There are various types of data Structure.
  • Linear Data Structure:- A data structure in which its elements form a sequence. It means each element in the linear data structure has a unique predecessor and a unique successor. Example: Array, Stack, Queue, Linked list
  • Non-linear Data Structure:– A data structure in which elements don’t form a sequence. It means unlike linear data structure, each element doesn’t have a unique predecessor and unique successor. Example: Tree, Graph, Tables, Sets

Operation on Data Structure

Different data structures allow different types of operations. Various operations that can be performed on data structures are:

  1. Insertion:- Adding a new element in the data structure.
  2. Deletion:- Removing any existing element from the data structure.
  3. Traversing:- Accessing all of data elements one by one to process all or some of them.
  4. Searching:– Process of finding the location of a particular element in the data structure.
  5. Sorting:– Process of arranging all the elements in some logical order. The order may be as Ascending or Descending or Alphabetic.
  6. Merging:– Combining the data structure into a single data structure.
]]>
https://aipsacademy.com/blogs/2023/02/13/data-structure-class-12th-computer-science-best-concept/feed/ 0
Friend Function and Friend Class in C++ with example https://aipsacademy.com/blogs/2023/02/13/friend-function-and-friend-class-in-c-with-example/ https://aipsacademy.com/blogs/2023/02/13/friend-function-and-friend-class-in-c-with-example/#respond Mon, 13 Feb 2023 02:22:25 +0000 https://aipsacademy.com/blogs/?p=483 In this topic we will Discuss Best concept and program of Friend Function and Friend Class in C++ with example.

Friend Function :-

  • It is a non-member Function which allows to access private Data member outside of the class.
  • Friend Function is invoked like a simple Function.
  • Friend function is declared with ‘friend’ keyword inside a class in private or public section.
  • Friend Function Requires an object as a function Argument.

Properties of Friend Function

There are following properties of friend function.

  • Friend function is invoked without objects.
  • Friend function can’t access members directly i.e it requires an object to access private or public members of the class.
  • Friend function can be declared in private of public section.
  • Friend function is rarely used because it violets the rule of Data hiding and Encapsulations.

Syntax:-

class class_name

{

friend return_type function_name(Arguments);

};

Example

class num

{

private:

int a,b,c;

friend void sum(num);

};

void sum(num obj)

{

Accessible private or public data

}

]]>
https://aipsacademy.com/blogs/2023/02/13/friend-function-and-friend-class-in-c-with-example/feed/ 0
Inheritance in C++ with Example Program https://aipsacademy.com/blogs/2023/02/13/inheritance-in-c-with-example-program/ https://aipsacademy.com/blogs/2023/02/13/inheritance-in-c-with-example-program/#respond Mon, 13 Feb 2023 02:17:11 +0000 https://aipsacademy.com/blogs/?p=480 In this informative topic, we will see best concept of Inheritance in C++ with Example and how it is important for OOP(Object Oriented Programming) Program.Hope this post will be very helpful for all students of Computer Science 11th,12th , BCA ,MCA and other computer science aspirants.

Inheritance

  • It is the method or technique by which objects of one class get the properties of objects of another class.
  • It is the most important feature of OOP.
  • It provides code reusability i.e. Code written once further can be used, No need to write again.
  • Redundant code can be removed.
  • It is a way for creating new classes from the existing classes.
  • It enables to derive a new class which is known as Derived / Child / Descendent/ Sub class from the existing classes which is known as Base / Parent / Ancestor / Super class.
  • Derived class can access members of base class according to rule of inheritance but base class can’t access member of derived class.
  • Base Class:- A class which allows to access data members and member functions to derived class is called base class.
  • Derived class:- A class which access or inherits the properties of base class  is called derived class.
  • A derived class may also be  base class of other derived class.

Rules for inheritance:

Base class can be inherited in two ways or mode.

  1. Public
  2. Private / protected

Public:– when a base class is inherited in public mode then Public members of base class become public member of derived class and protected members of base class become protected member of derived class.

Private:- When a base class is inherited in private mode the public and protected members of base class become private members of derived class.

Syntax for inheritance

class Derived_Class : Mode Base class

{

…………………

………………..

};

Example

Class nips

{

public:

int a,b;

};

class jac : public nips

{

………….

………….//a, b are accessible here

};

Types of inheritance

There are different types of inheritance in C++.

  1. Single inheritance / single level inheritance
  2. Multiple inheritance
  3. Multilevel inheritance
  4. Hierarchical inheritance
  5. Hybrid inheritance
  6. Multi path inheritance

Single inheritance / single level inheritance

When a Derived class inherits only one base class , is known as single inheritance or single level inheritance.

]]>
https://aipsacademy.com/blogs/2023/02/13/inheritance-in-c-with-example-program/feed/ 0
Constructor and Destructor in C++ with Example https://aipsacademy.com/blogs/2023/02/13/constructor-and-destructor-in-c-with-example/ https://aipsacademy.com/blogs/2023/02/13/constructor-and-destructor-in-c-with-example/#respond Mon, 13 Feb 2023 02:12:06 +0000 https://aipsacademy.com/blogs/?p=477 In this topic we will learn best concept of Constructor and Destructor in C++ with example.

Constructor

  • It is a special member function which is used to initialize data members of a class.
  • Constructor is different from all other member functions because it’s name matches with class name and automatically called by compiler when object is created.
  • It is similar to other member functions i.e it can be defined inside or outside of the class and can also be passed parameters.

Characteristics of Constructor

  • Constructor has the same name as its class name.
  • Constructor should be declared in public section.
  • Constructor does not return any type not even void.
  • Constructor is used to initialize the data member of a class.
  • Constructor is automatically called when object is created.
  • Constructor can be overloaded i.e multiple constructors can be used in a class.
  • It allows passing parameters.
  • It follows all the access rules which followed by other member functions.
  • It can’t be virtual.
  • if a constructor is not defined in the class then default constructor is automatically generated by the compiler.

Types of Constructor

There are three types of constructors in c++.

  1. Default constructor
  2. Parameterized constructor
  3. Copy constructor

Default constructor

A constructor without parameter or Argument is known as default constructor.

class num

{

public:

num()

{

// default constructor

}

};

]]>
https://aipsacademy.com/blogs/2023/02/13/constructor-and-destructor-in-c-with-example/feed/ 0
C++ Development Environment Setup with VS Code https://aipsacademy.com/blogs/2023/02/13/c-development-environment-setup-with-vs-code/ https://aipsacademy.com/blogs/2023/02/13/c-development-environment-setup-with-vs-code/#respond Mon, 13 Feb 2023 02:06:29 +0000 https://aipsacademy.com/blogs/?p=474 If we want to make a program in C++ with latest way then we must know about C++ Development Environment with Visual Studio code(VS Code). It provides an IDE(Integrated Development Environment). It is well suited for complex or large projects. VS code editor is a microsoft product so it’s very popular among programmers.

We use certain steps to setup a C++ development Environment with Visual Studio code(VS Code)

Step 1:- Dowload VS(Visual studio code) Editor
https://code.visualstudio.com/download

Step 2: Install VS Code.

Step 3: Click on Extension.It shows at Left side bottom.
(Ctrl+Shift+ X)

Step 4: Install Code runner for C++

Step 5: Install intellisense for C++

]]>
https://aipsacademy.com/blogs/2023/02/13/c-development-environment-setup-with-vs-code/feed/ 0
Concept of Object Oriented Programming in C++ https://aipsacademy.com/blogs/2023/02/13/concept-of-object-oriented-programming-in-c/ https://aipsacademy.com/blogs/2023/02/13/concept-of-object-oriented-programming-in-c/#respond Mon, 13 Feb 2023 02:01:00 +0000 https://aipsacademy.com/blogs/?p=471 In this topic we will learn best Concept of Object Oriented Programming in C++.

Object Oriented Programming (OOP) is way of programming that allows modularization of a program by forming separate memory area for data as well as function.

There are following characteristics of Object Oriented Programming.

  • Programs are divided into class and objects
  • New data items and function can be easily added whenever essential.
  • Data is private and prevented from accessing external functions.
  • OOP pays more importance to data than function.
  • Object can communicate with each other through functions.

Advantages of OOP:

Object Oriented Program can be easily upgraded without affecting the other parts of the program.

Redundant program code can be eliminated using inheritance.

OOP allows Po;ymorphism, Encapsulatioin, and other characteristics of OOP.

OOP enhances the thought process of a programmer to rapid development of a software in sort time.

Uses of OOP:

  • Object oriented DBMS / Application software
  • System software
  • Office automation software / custom software
  • Network Programming
  • Computer Aided Design(CAD) /Computer Aided Manufacturing(CAM)

Example of OOP Language

  • Simula67
  • C++
  • Small talk
  • Charm++
  • Java
  • C# (C Sharp)

What is Class ?

  • Class is a user Defined Data type.
  • A Class is a group of similar objects that can share common properties and relationship.
  • A class serve as a blue print or template for its objects. i.e any number of objects can be created for a class.
  • A class represents the data as well as functions. For example a class computer consists of data such as keyboard, Monitor, Price, Brand etc. In addition it also consists functions such as Processing(), Display(), Printing() etc .i.e specified action that can taken on data.
  • Class does not exists physically.

Object

  • An object is a runtime entities.
  • Objects are small self contained modular units with a well defined boundary.
  • Object is like a variable of type class.
  • An object consists of state and behavior.

Method / Function

An operation required for an object when coded in a class is called method.

Data Abstraction

The representation of essential feature without including the background details, is called data abstraction.

Abstraction is a mechanism or technique to hide irrelevant (unwanted) details and representation of only essential feature so that one can focus on important thing at a time. For example while driving a car a driver knows only essential feature such as how to use the clutch, gears, break , accelerator etc.

Polymorphism

The capability of taking more than one form for different purpose is called polymorphism.

Polymorphism allows the same function to act differently.

It is a greek term which means multiple forms.

example: Function overloading , Operator overloading.

Encapsulation

The packing of data and function into a single component is known as encapsulation.

Inheritance

It is the method by which object of one class gets the properties of objects of another class.

Inheritance is one of the most powerful feature of OOP language that allows to derive a new class from existing class.

Data Hiding

It means declaring data members and member functions in private section so that it can’t be accessed directly outside of the class.

]]>
https://aipsacademy.com/blogs/2023/02/13/concept-of-object-oriented-programming-in-c/feed/ 0
Class and Object in C++ Programming Best concept https://aipsacademy.com/blogs/2023/02/12/class-and-object-in-c-programming-best-concept/ https://aipsacademy.com/blogs/2023/02/12/class-and-object-in-c-programming-best-concept/#respond Sun, 12 Feb 2023 02:30:31 +0000 https://aipsacademy.com/blogs/?p=449 There are different ways to make a program using class and object in C++. In this, we will learn how to use class object program in very easy way. We can make a program using class in four ways like.

  • One member function in the class definition
  • One member function outside the class definition
  • Multiple member functions inside the class definition
  • Multiple member functions outside the class definition

Q. Write a program to find sum of two numbers using class.

#include<iostream.h>
#include<conio.h>
class nips
{		
public:
int a,b,c;
void show()
{
a=10;
b=5;
c=a+b;
cout<<"Sum="<<c;
}
};

void main()
{
clrscr();
nips n1;
n1.show();
getch();
}

Output

Sum=15

]]>
https://aipsacademy.com/blogs/2023/02/12/class-and-object-in-c-programming-best-concept/feed/ 0
Console Input Output in C++ with Example https://aipsacademy.com/blogs/2023/02/12/console-input-output-in-c-with-example/ https://aipsacademy.com/blogs/2023/02/12/console-input-output-in-c-with-example/#respond Sun, 12 Feb 2023 02:20:47 +0000 https://aipsacademy.com/blogs/?p=446 In this tutorial we are going to learn console input output int C++ with example in very easy way.

Input through keyboard and output on the monitor/ screen is known as console input output.

To perform input /output operations , there are various functions.

console input / output can be divided into two categories.

  1. Unformatted input / output functions
  2. Formatted input / output functions

Unformatted input / output functions

It is mainly used for characters. No any control string is used.

Unformatted input functions

1. getch()

It takes entry of a single character. Entered key doesn’t display on the screen . It has defined in #include<conio.h> header file.

2. getche()

It takes a single character and very similar to getch( ). Entered character prints on the screen . It has defined in #include<conio.h> header file.

3. getchar()

It is used to take entry of single character form keyboard. It has defined in #include<stdio.h> header file.

4. gets()

It is used to take entry of a string(more than one words at a time) from the keyboard. It has defined in #include<stdio.h> header file.

Unformatted output functions

1. putch( )

It displays the character on the screen. It has defined in #include<conio.h> header file.

2. putchar( )

It displays the character on the screen. It has defined in #include<stdio..h> header file.

3.puts( )

It is used to display string on the monitor. It has defined in #include<stdio.h> header file.

]]>
https://aipsacademy.com/blogs/2023/02/12/console-input-output-in-c-with-example/feed/ 0