Sunday, 27 November 2011

C++ Multipication Class And Object Use In Diffrent DataType


#include<iostream.h>
#include<conio.h>
class test
 {
  int a[5];
  float f;
  char c;
  public:
  void display()
   {
     f=3.5;
cout<<"f";
   }
  };
  void main()
  {
   clrscr();
   test ob;
   ob.display();
   getch();
  }

No comments:

Post a Comment