<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.zcubes.com/index.php?action=history&amp;feed=atom&amp;title=Yurttas%2FPL%2FOOL%2FCplusplus%2FF%2F08%2F01%2F01%2F00%2Ffruits_34.cpp</id>
	<title>Yurttas/PL/OOL/Cplusplus/F/08/01/01/00/fruits 34.cpp - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.zcubes.com/index.php?action=history&amp;feed=atom&amp;title=Yurttas%2FPL%2FOOL%2FCplusplus%2FF%2F08%2F01%2F01%2F00%2Ffruits_34.cpp"/>
	<link rel="alternate" type="text/html" href="http://wiki.zcubes.com/index.php?title=Yurttas/PL/OOL/Cplusplus/F/08/01/01/00/fruits_34.cpp&amp;action=history"/>
	<updated>2026-05-18T17:20:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>http://wiki.zcubes.com/index.php?title=Yurttas/PL/OOL/Cplusplus/F/08/01/01/00/fruits_34.cpp&amp;diff=156543&amp;oldid=prev</id>
		<title>MassBot1: Created page with &quot;&lt;syntaxhighlight lang=&quot;cpp&quot; line start=&quot;1&quot; enclose=&quot;div&quot;&gt;/*     Copyright(C) 1998     All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..       Perm...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.zcubes.com/index.php?title=Yurttas/PL/OOL/Cplusplus/F/08/01/01/00/fruits_34.cpp&amp;diff=156543&amp;oldid=prev"/>
		<updated>2013-11-07T05:26:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot; line start=&amp;quot;1&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;/*     Copyright(C) 1998     All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..       Perm...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot; line start=&amp;quot;1&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;/*&lt;br /&gt;
   Copyright(C) 1998&lt;br /&gt;
   All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..&lt;br /&gt;
&lt;br /&gt;
   Permission to use, copy, modify, and distribute this&lt;br /&gt;
   software and its documentation for EDUCATIONAL purposes&lt;br /&gt;
   and without fee is hereby granted provided that this&lt;br /&gt;
   copyright notice appears in all copies.&lt;br /&gt;
&lt;br /&gt;
   date   : January 1, 1998.&lt;br /&gt;
   author : Salih Yurttas.&lt;br /&gt;
&lt;br /&gt;
   fruits_34.cpp&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include &amp;lt;vector&amp;gt;&lt;br /&gt;
&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
#include &amp;quot;Apple.h&amp;quot;&lt;br /&gt;
#include &amp;quot;Orange.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
int main(int argc, char* argv[]) {&lt;br /&gt;
&lt;br /&gt;
  vector&amp;lt;Fruit *&amp;gt; fp;&lt;br /&gt;
  vector&amp;lt; vector&amp;lt;Fruit *&amp;gt; &amp;gt; f_p;&lt;br /&gt;
  &lt;br /&gt;
  fp.push_back(new Apple);&lt;br /&gt;
&lt;br /&gt;
  fp[0]-&amp;gt;set_price(2);&lt;br /&gt;
  cout &amp;lt;&amp;lt; fp[0]-&amp;gt;identify() &amp;lt;&amp;lt; endl;&lt;br /&gt;
  fp[0]-&amp;gt;print_price();&lt;br /&gt;
  cout &amp;lt;&amp;lt; endl;&lt;br /&gt;
&lt;br /&gt;
  fp.push_back(new Apple);&lt;br /&gt;
&lt;br /&gt;
  fp[1]-&amp;gt;set_price(4);&lt;br /&gt;
  cout &amp;lt;&amp;lt; fp[1]-&amp;gt;identify() &amp;lt;&amp;lt; endl;&lt;br /&gt;
  fp[1]-&amp;gt;print_price();&lt;br /&gt;
  cout &amp;lt;&amp;lt; endl;&lt;br /&gt;
&lt;br /&gt;
  f_p.push_back(fp);&lt;br /&gt;
&lt;br /&gt;
  fp.push_back(new Orange);&lt;br /&gt;
&lt;br /&gt;
  fp[2]-&amp;gt;set_price(1);&lt;br /&gt;
  cout &amp;lt;&amp;lt; fp[2]-&amp;gt;identify() &amp;lt;&amp;lt; endl;&lt;br /&gt;
  fp[2]-&amp;gt;print_price();&lt;br /&gt;
  cout &amp;lt;&amp;lt; endl;&lt;br /&gt;
&lt;br /&gt;
  fp.push_back(new Orange);&lt;br /&gt;
&lt;br /&gt;
  fp[3]-&amp;gt;set_price(2);&lt;br /&gt;
  cout &amp;lt;&amp;lt; fp[3]-&amp;gt;identify() &amp;lt;&amp;lt; endl;&lt;br /&gt;
  fp[3]-&amp;gt;print_price();&lt;br /&gt;
  cout &amp;lt;&amp;lt; endl;&lt;br /&gt;
&lt;br /&gt;
  f_p.push_back(fp);&lt;br /&gt;
&lt;br /&gt;
  cout &amp;lt;&amp;lt; f_p[0][0]-&amp;gt;identify() &amp;lt;&amp;lt; endl;&lt;br /&gt;
  f_p[0][0]-&amp;gt;print_price();&lt;br /&gt;
  cout &amp;lt;&amp;lt; endl;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MassBot1</name></author>
	</entry>
</feed>