Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Friend function in c++:
class miles;
class km
{
float value;
public :
// void input();
km convert(km ,int a ) ;
void output()
cout << value;
}
};
km km :: convert(km a,int b)
a.value = b * 1.61;
return a;
class miles
int value;
public:
void input()
cout << "Enter the value\n";
cin >> value;
friend km & convert(km &,miles);
km & convert(km & a,miles b)
a= b.value * 1.61;
void main()
km a;
miles b;
clrscr();
b.input();
a= convert (a,b);
a.output();
getch();
A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concatenation. For a string of t
A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome
Insertion sort - C program: Write a program in c to define a insertion sort. void main() { clrscr(); int a[100],ch,n; cout cin>>n; for (int i=0
why c is middle level language?
within 2 mins give me answer pllzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
example of friend
answer for this program
Ask question #write statement that assign random integer to the varaible n in the (100
Your program will read two kinds of data from two files: names and predicates. It will read a formal expression from standard input and check whether that expression is syntactical
void main() { int *p, *q, i ; p=(int*)100; q=(int*)200; i=q-p; printf("%d",i); } }
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd