Subscribe this Blog

Wikipedia

Search results

Notifications and New Posts!

Thursday, July 23, 2020

Google Meet Session - 23rd July 2020 C++ TY Mechanical (A and B)

C++ TY Mech AB
Thursday, 23 July13:30 – 15:30
Weekly on Thursday, until 30 Sep 2020
Join with Google Meet
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,

Attendance will be uploaded after 14:45.
To know attendance : Click here

/*
A C++ program to pass values from main function to class (udf)
*/
#include<iostream.h>
#include<conio.h>
#define k 5.0  //global declaration
class sample
{
private:
int a,b;
public:
int add;
void fun(int x,int y)
{
a=x;
b=y;
cout<<"\n a="<<a;
cout<<"\n b="<<b;
cout<<"\n k="<<k;
}
void sum();
};
void sample::sum()
{
add=a+b;
cout<<"\n Addition of a and b="<<add;
cout<<"\n k="<<k;
}

void main()
{
int a,b;
clrscr();
cout<<"\n Please enter a=";
cin>>a;
cout<<"\n Please enter b=";
cin>>b;
cout<<"\n k="<<k;
sample obj;
obj.fun(a,b); //calling of udf with the object of class and passing values from main to class  (udf)
obj.sum();
cout<<"\n value of add="<<obj.add;
getch();

}


Started to learn html
<html>
<title>
Mechancial
</title>
<head>
Welcome to webpage
<head>
<bodyt>
<marquee><h1><b>Hello</b></h1></marquee>
</body>
</html>

Started to Learn to php language:
<html>
<title>
Mechanical
</title>
<head>
Welcome to webpage
<head>
<body>
<marquee><h1><b>Hello</b></h1></marquee>
</body>
</html>

<?php
$a=10;
$b=20;
echo "a=".$a."<br>";
echo "b=".$b."<br>";

function sum($a,$b)
{
$c=$a+$b;
echo "Addition=".$c."<br>";
}

sum($a,$b);

?>


Google Meet Session Video Link:
Please rotate mobile screen.






Google Meet Session Facebook Video Link:

No comments:

Post a Comment