A4 - cout<<"a ="<<a<<"b...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include<iostream.h> #include<conio.h> # class x { int a; int b; public: x(int i,int j):a(b*i),b(j) {} void out() {
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cout<<"a = "<<a<<"b = "<<b; } }; } void main() { clrscr(); x x1(2,3); x1.out(); getch(); }...
View Full Document

Ask a homework question - tutors are online