Subscribe this Blog

Wikipedia

Search results

Notifications and New Posts!

Thursday, July 30, 2020

Google Meet Session - 30th July 2020 C++ TY Mechanical (A and B)

C++ TY Mech AB
Thursday, 30 July14:45 – 16:45
Weekly on Thursday, until 30 Sep 2020
Join with Google Meet
https://meet.google.com/hid-dmnv-qxw
Join by phone
Description: Dear Student Friends,Please join sharp at 13:30 today. I will admit/allow students up to 13:40.Those who will join late for them door will be closed means entry to the session will be denied. Please note. Because admitting late, creates disturbance to all.
  1. 10 minutes before

Organiser: Sachin Bhosale

With Kind Regards,

To know attendance : Click here


Google Meet Session Facebook Link:



Learning for today's session:
1. 
/*
A C++ program to understand constructor
constructor is nothing but special member function.
*/
#include<iostream.h>
#include<conio.h>
//#define pi 3.14
class sample
{
private:
float cc,r,ac,pi;
public:
sample()
{
pi=3.14;
cout<<"\n Value of pi"<<pi;
}
void enterr();
void cal_cc();
void cal_ac();
};

void sample::enterr()
{
cout<<"\n Value of pi="<<pi;
cout<<"\n Please enter Radius=";
cin>>r;
cout<<"\n Value of pi="<<pi;
}

void sample::cal_cc()
{
cc=2*pi*r;
cout<<"\n Circumference of circle="<<cc;
}
void sample::cal_ac()
{
ac=pi*r*r;
cout<<"\n Area of circle="<<ac;
}

void main()
{
clrscr();
sample obj;
obj.enterr();
obj.cal_cc();
obj.cal_ac();
getch();

}


2.
Use following presentation to install python and pycharm on Window's 10 OS:

No comments:

Post a Comment