From: <nis...@ya...> - 2004-07-22 06:01:42
|
Dear sir, The following c++ program I have executed using Dev -C++ compiler,but I couldn't able to see the out put,as TURBO c complilers generates. How I can see the output using this compiler.Please do help me. #include <iostream.h> #include<conio.h> class example { int a; char b,c; public: example() { a=10; b='n'; c='i'; } example(char x) { b=x; a=12; c='o'; } example(int r ,char y,char z) { a=r; b=y; c=z; } void put(void) { cout <<"a="<<a<<"\n"; cout<<"b="<<b<<"\n"; cout<<"c="<<c<<"\n"; } }; void main(void) { example o,o1('q'),o2(1,'r','s'); //clrscr(); o.put(); o1.put(); o2.put(); //getch(); } Regards, Nisha.P Yahoo! India Careers: Over 65,000 jobsonline. |