|
From: <nis...@ya...> - 2004-07-22 10:16:04
|
Dear all,
The problem which I faced got solved.In project options "do not create console" was cheked.I unchecked that option and the console screen is poping after execution of the code.
Thanks and Regards,
Nisha
nisha poovathinkal <nis...@ya...> wrote: Date: Thu, 22 Jul 2004 06:40:20 +0100 (BST)
From: nisha poovathinkal
Subject: help
To: dev...@li...
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 jobs online.
Yahoo! India Careers: Over 65,000 jobsonline. |