From: Eric <eri...@cl...> - 2004-07-25 10:15:06
|
Bye the way you should make your variables more easy to follow example you have used a,b,c,q,r,s,x,y,z, if for exampe "int a" was the input of a part number you might like to make this "int p" or better still "int part" if "char d" was the input of a name you might like to call it "char n" or once againt better still "char name" it just makes the program easier to follow when you came back to it some weeks later, ----- Original Message ----- From: nisha poovathinkal To: dev...@li... Sent: Thursday, July 22, 2004 5:40 PM Subject: [Dev-C++] help 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. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.726 / Virus Database: 481 - Release Date: 22-Jul-04 |