Mega Code Archive
Use class pointer and class array together
#include "iostream.h"
class MyClass
{
private:
int Price;
int Count;
long Total;
public:
void Input(int P,int C)
{
Price=P;
Count=C;
}
void MyClass::Compute()
{
Total=(long) Price*Count;
}
void MyClass::Print(){
cout<<"Price="<