Professional Documents
Culture Documents
#include<conio.h>
using namespace std;
struct student
{
int rollNo;
int marks;
};
void getstudent(student &stu)
{1
cout<<"enter student roll no:";
cin>>stu.rollNo;
cout<<endl;
_getch();
}
#include<iostream>
#include<conio.h>
using namespace std;
struct Distance
{
int feet;
float inches;
};
Distance add(Distance dd1,Distance dd2)
{
Distance dd3;
dd3.feet=dd1.feet+dd2.feet;
dd3.inches=dd1.inches+dd2.inches;
d3=add(d1,d2);
cout<<"Displaying Distance:"<<endl;
Displayadd(d1);
Displayadd(d2);
Displayadd(d3);
}