Wednesday, 27 July 2016

Two days handson workshop on "Basics of Linux" on 6th & 7th Aug, 2016 @ PICT, Pune

Dear Students,

At PICT, Computer Engg Dept, we are organizing two days workshop on “Basics of Linux” on 06th & 07th Aug 2016.

Motivation behind this workshop is to explore Linux operating system. Syllabus of this workshop ensures hands on training which includes hands on Linux utilities, POSIX API programming, inter-process communication constructs, exposure to shell scripting, Linux server administration / configuration, basic building blocks of python, etc.

Interested students can register their name to the mentioned below faculties on or before 02-08-2016.

1) Prof. Virendra Bagade

Mob No. 9763722393

2) Prof. Pavan Jaiswal

Mob No. 9545200881


Online registration link:

https://goo.gl/tycYqz

Thanks.

Monday, 18 July 2016

C++ program to perform addition on complex numbers using operator overloading and friend function

/*
Title:    C++ program to perform addition on complex numbers using operator overloading and friend function
Author: Pavan Jaiswal
FileName: 1ComplexNos.cpp

Description:
    --> Below C++ source code demonstrates addition on complex nos
    --> Here we have used two features of C++ language. That is "Operator Overloading" & "Friend Function"
    --> Operators overloaded are "+", "<<" and ">>"

*/

#include "iostream"
using namespace std;

class ComplexNos{
    private:
        int real, img; // private data members to accept real and imaginary parts of complex nos

    public:
        friend istream & operator >>(istream &, ComplexNos &); // Declaration of friend function >>
        friend ostream & operator <<(ostream &, ComplexNos &); // Declaration of friend function <<

        ComplexNos operator +(ComplexNos); // Declaration of function +
   
};

C++ program to implement calculator functionality

/*

Title: C++ program to implement calculator functionality
Author: Pavan Jaiswal
FileName: 5Calculator.cpp

Description:
    --> Below C++ source code demonstrates calculator to perform basic arithmetic operations
    --> Idea is user will provide expression as in input. Say for eg. 1 + 3.
    --> So depending on operator inputted, respective switch case will be called.
    --> Four different member functions are defined outside the class definition. 

*/

#include "iostream"
using namespace std;

class Calculator{
   
    public:
        /* public member functions of class. Each one of them taking two operands as an input */
        float addition(float num1, float num2);
        float subtraction(float num1, float num2);
        float multiplication(float num1, float num2);
        float division(float num1, float num2);

};

Tuesday, 12 July 2016

C++ program to demonstrate friend funtion

/*
Title:     C++ Program to demonstrate friend funtion
Author: Pavan Jaiswal
FileName: 3Friendfunction.cpp

Description:
    --> There would be a requirement sometime where you are suppose to access private data member outside the class scope.
    --> Friend function is a one of the solutions. It allows to access private data members of a class.
    --> In the below source code we have one class which have one private data member, one member function and one friend function.
    --> Idea is to set value to class data member through a member function and to print value of it through a friend function.
*/