|
From: Scott S. <age...@co...> - 2004-07-22 13:57:25
|
nisha poovathinkal wrote:
> 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> //Should be #Include <iostream>
> #include<conio.h> //Put 'using namespace std;' after headers are included
> 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(); //Use cin.get(); here
> }
>
> Regards,
> Nisha.P
>
> *Yahoo! India Careers*
> <http://in.rd.yahoo.com/specials/mailtg/*http://yahoo.naukri.com/>*:*
> Over 65,000 jobs online
> <http://in.rd.yahoo.com/specials/mailtg2/*http://yahoo.naukri.com/>.
>
|