コード例 #1
0
int main()
{
	Collection cobj;  //declare objects "cobj" to Collection.h and call constructors.//

	//function calls.//	
	getUserInputs(cobj);	//gets the owner and collection name.

	//creating and loading new objects.//
	Money m1("Bill","England","Pounds",10); 
	cobj.NewObject(m1);	
	Money m2("Bill","South Africa","Rand",5);
	cobj.NewObject(m2);	
	Money m3("Coin","Italy","Euro",2);
	cobj.NewObject(m3);	
	Money m4("Bill","Germany","Deutschmarks",10);
	cobj.NewObject(m4);	
	Money m5("Coin","Saudi Arabia","Riyal",1);
	cobj.NewObject(m5);	
	finUserInputs();
	
	cobj.DisplayCollection();//displays the desired outputs.//	
	system("pause");            
	return 0;
}//end of main().//