<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Directory%3ADerek_Elder%2FPrograms%2FSortedMovieList</id>
	<title>Directory:Derek Elder/Programs/SortedMovieList - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Directory%3ADerek_Elder%2FPrograms%2FSortedMovieList"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Directory:Derek_Elder/Programs/SortedMovieList&amp;action=history"/>
	<updated>2026-06-14T13:55:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.3</generator>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Directory:Derek_Elder/Programs/SortedMovieList&amp;diff=51716&amp;oldid=prev</id>
		<title>Derek Elder at 00:51, 18 December 2007</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Directory:Derek_Elder/Programs/SortedMovieList&amp;diff=51716&amp;oldid=prev"/>
		<updated>2007-12-18T00:51:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:51, 18 December 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l29&quot; &gt;Line 29:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 29:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//Precondition:Add function must be called and executed.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//Precondition:Add function must be called and executed.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//Postcondition:String compare function is called to execute the comparison, resulting in two possible outcomes:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//Postcondition:String compare function is called to execute the comparison, resulting in two possible outcomes:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//	&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;			&lt;/del&gt;1.A positive value is returned and is added into the list.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//	&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;	&lt;/ins&gt;1.A positive value is returned and is added into the list.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//	&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;			&lt;/del&gt;2.A 0 or a negative value is returned and isn't added into the list.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//	&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;	&lt;/ins&gt;2.A 0 or a negative value is returned and isn't added into the list.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	void Initialize(string title, int year, int gross, string studio, string stars);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	void Initialize(string title, int year, int gross, string studio, string stars);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//Purpose:Initializes a movie item with data, basically a constructor.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//Purpose:Initializes a movie item with data, basically a constructor.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Derek Elder</name></author>
	</entry>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Directory:Derek_Elder/Programs/SortedMovieList&amp;diff=51340&amp;oldid=prev</id>
		<title>Derek Elder: format</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Directory:Derek_Elder/Programs/SortedMovieList&amp;diff=51340&amp;oldid=prev"/>
		<updated>2007-11-01T23:41:56Z</updated>

		<summary type="html">&lt;p&gt;format&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:41, 1 November 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l39&quot; &gt;Line 39:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 39:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//Precondition:ReadAllMovies() must be called.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//Precondition:ReadAllMovies() must be called.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//Postcondition:1.True is returned if one movie was taken from the data file and entered into the list.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//Postcondition:1.True is returned if one movie was taken from the data file and entered into the list.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//	&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;			&lt;/del&gt;2.False is returned if the EndOfFile flag was reached.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//	&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;	&lt;/ins&gt;2.False is returned if the EndOfFile flag was reached.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	void Display(ostream&amp;amp;os = cout) const;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	void Display(ostream&amp;amp;os = cout) const;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//Purpose:Displays one movie from the list.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//Purpose:Displays one movie from the list.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l147&quot; &gt;Line 147:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 147:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//Postcondition:The list is displayed to the console.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//Postcondition:The list is displayed to the console.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	void Search(const MovieListItemType&amp;amp; itemToSearch, bool&amp;amp; success);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	void Search(const MovieListItemType&amp;amp; itemToSearch, bool&amp;amp; success);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//Purpose:To search through the list for the correct movie&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//Purpose:To search through the list for the correct movie&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//Precondition:Search called from the menu.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//Precondition:Search called from the menu.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//Postcondition:1.If the movie is found the index where it was found is returned.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//Postcondition:1.If the movie is found the index where it was found is returned.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//	&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;			&lt;/del&gt;2.If the movie is not found the user will be notified.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//	&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;	&lt;/ins&gt;2.If the movie is not found the user will be notified.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;private:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;private:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l264&quot; &gt;Line 264:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 264:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		if(itemToSearch.CompareKeys(items[i]) == 0)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		if(itemToSearch.CompareKeys(items[i]) == 0)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		{&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		{&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			cout&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;&amp;quot;The Movie has been found at index &amp;quot;&amp;lt;&amp;lt;i&amp;lt;&amp;lt;&amp;quot;.&amp;quot;&amp;lt;&amp;lt;endl;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;//add ...&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			cout&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;&amp;quot;The Movie has been found at index &amp;quot;&amp;lt;&amp;lt;i&amp;lt;&amp;lt;&amp;quot;.&amp;quot;&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			items[i].Display();&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			items[i].Display();&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			break; //If the movie is found, go no further.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			break; //If the movie is found, go no further.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l272&quot; &gt;Line 272:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 272:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		{&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		{&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			cout&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;&amp;quot;The movie you wished to search for has not been found.&amp;quot;&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			cout&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;&amp;quot;The movie you wished to search for has not been found.&amp;quot;&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			break; //If you have gone past the point&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			break; //If you have gone past the point where the movie should be stored&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;				   //&lt;/del&gt;where the movie should be stored in the list, go no further.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;			       //&lt;/ins&gt;in the list, go no further.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Derek Elder</name></author>
	</entry>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Directory:Derek_Elder/Programs/SortedMovieList&amp;diff=51329&amp;oldid=prev</id>
		<title>Derek Elder: TOC</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Directory:Derek_Elder/Programs/SortedMovieList&amp;diff=51329&amp;oldid=prev"/>
		<updated>2007-11-01T22:17:45Z</updated>

		<summary type="html">&lt;p&gt;TOC&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:17, 1 November 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;__TOC__&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==MovieType.h==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==MovieType.h==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Derek Elder</name></author>
	</entry>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Directory:Derek_Elder/Programs/SortedMovieList&amp;diff=51328&amp;oldid=prev</id>
		<title>Derek Elder: rework</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Directory:Derek_Elder/Programs/SortedMovieList&amp;diff=51328&amp;oldid=prev"/>
		<updated>2007-11-01T22:16:52Z</updated>

		<summary type="html">&lt;p&gt;rework&lt;/p&gt;
&lt;a href=&quot;https://mywikibiz.com/index.php?title=Directory:Derek_Elder/Programs/SortedMovieList&amp;amp;diff=51328&amp;amp;oldid=51326&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Derek Elder</name></author>
	</entry>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Directory:Derek_Elder/Programs/SortedMovieList&amp;diff=51326&amp;oldid=prev</id>
		<title>Derek Elder: start of page</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Directory:Derek_Elder/Programs/SortedMovieList&amp;diff=51326&amp;oldid=prev"/>
		<updated>2007-11-01T22:12:21Z</updated>

		<summary type="html">&lt;p&gt;start of page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
//Programmer:Derek Elder&lt;br /&gt;
//Assignment:Lab 2&lt;br /&gt;
//Section:0112&lt;br /&gt;
//Instructor:Hyman&lt;br /&gt;
//Time:T/TH 7:30 - 11:10 AM&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include &amp;lt;fstream&amp;gt;&lt;br /&gt;
#include &amp;lt;string&amp;gt;&lt;br /&gt;
#include &amp;lt;iomanip&amp;gt;&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
class BigInt&lt;br /&gt;
{&lt;br /&gt;
	friend BigInt operator+(const BigInt&amp;amp; num1, const BigInt&amp;amp; num2);&lt;br /&gt;
	//Purpose:Operator overloaded, + operator will call AddBigInts.&lt;br /&gt;
	//Precondition:None.&lt;br /&gt;
	//Postcondition:The two BigInts have been added together.&lt;br /&gt;
	friend ostream&amp;amp; operator&amp;lt;&amp;lt;(ostream&amp;amp; os, const BigInt&amp;amp; num);&lt;br /&gt;
	//Purpose:Operator overloaded, &amp;lt;&amp;lt; operator will call PrintToBigInt.&lt;br /&gt;
	//Precondition:None.&lt;br /&gt;
	//Postcondition:The BigInt is printed.&lt;br /&gt;
	friend bool AddBigInts(const BigInt&amp;amp; num1, const BigInt&amp;amp; num2, BigInt&amp;amp; sum);&lt;br /&gt;
	//Purpose:Add two integers together into a sum.&lt;br /&gt;
	//Precondition:BigInts num1 and num2 are valid.&lt;br /&gt;
	//Postcondition:1.Return true if sum is valid.&lt;br /&gt;
	//		2.Return false if there is overflow.&lt;br /&gt;
	friend void firstIntegerLarger(const BigInt&amp;amp; largest, const BigInt&amp;amp; smallest, BigInt&amp;amp; sum);&lt;br /&gt;
	//Purpose:Modularize AddBigInts function to make it more efficent.&lt;br /&gt;
	//Precondition:BigInts num1 and num2 have been entered and contain good data.&lt;br /&gt;
	//Postcondition:1.Sum has been populated by good data as long as numDigits &amp;lt;= MAX.&lt;br /&gt;
	//		2.If there is overflow (numDigits &amp;gt; MAX) it will be indicated in operator+.&lt;br /&gt;
public:&lt;br /&gt;
	static const int MAX = 5;&lt;br /&gt;
	BigInt();&lt;br /&gt;
	//Default Constructor&lt;br /&gt;
	//Purpose:Set numDigits to 0 to indicate an array is not populated.&lt;br /&gt;
	//Precondition:None.&lt;br /&gt;
	//Postcondition:Constructor has set numDigits to 0 indicating the array is not populated.&lt;br /&gt;
	BigInt(const string&amp;amp; goodString);&lt;br /&gt;
	//Constructor&lt;br /&gt;
	//Purpose:If num is intitalized in main with a value, the constructor calls StringToBigInt.&lt;br /&gt;
	//Precondition:None.&lt;br /&gt;
	//Postcondition:BigInt num has been converted from a string into  an array.&lt;br /&gt;
	bool ReadBigInt(istream&amp;amp; is = cin);&lt;br /&gt;
	//default stream arg; ReadBigInt() means use &amp;quot;cin&amp;quot;.&lt;br /&gt;
	//Purpose:Read a BigInt, deposit into a string and call StringToBigInt.&lt;br /&gt;
	//Precondition:None.&lt;br /&gt;
	//Postcondition:1.Array is populated, data is valid.&lt;br /&gt;
	//              2.BigInt is too large, loops until an Int is entered that is small enough.&lt;br /&gt;
	void PrintBigInt(ostream&amp;amp; os = cout) const;&lt;br /&gt;
	//default stream arg; PrintBigInt() means use &amp;quot;cout&amp;quot;.&lt;br /&gt;
	//Purpose:Print a BigInt in the same way it was entered by reversing the way it was stored into the array.&lt;br /&gt;
	//Precondition:BigInt num is valid.&lt;br /&gt;
	//Postcondition:Data is printed on screen matching the way it was entered from the console.&lt;br /&gt;
private:&lt;br /&gt;
	void StringToBigInt(const string&amp;amp; goodString);&lt;br /&gt;
	//Purpose:Convert from characters to numeric data&lt;br /&gt;
	//Precondition:Assume &amp;quot;goodString&amp;quot; is perfect.&lt;br /&gt;
	//Postcondition:goodString is converted into numeric data and entered into an array.&lt;br /&gt;
	int Digits[MAX];&lt;br /&gt;
	int numDigits;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
class OverFlowException&lt;br /&gt;
{&lt;br /&gt;
public:&lt;br /&gt;
	BigInt m_num1, m_num2;&lt;br /&gt;
	char m_op;&lt;br /&gt;
	OverFlowException(const BigInt&amp;amp; num1,const BigInt&amp;amp; num2, char op)&lt;br /&gt;
	{&lt;br /&gt;
		m_num1 = num1;&lt;br /&gt;
		m_num2 = num2;&lt;br /&gt;
		m_op = op;&lt;br /&gt;
	}&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
void main()&lt;br /&gt;
{		&lt;br /&gt;
	BigInt num1, num2;//(&amp;quot;12345&amp;quot;);&lt;br /&gt;
	bool moreNumbers = true;&lt;br /&gt;
	char update = ' ';&lt;br /&gt;
&lt;br /&gt;
	while(moreNumbers)&lt;br /&gt;
	{&lt;br /&gt;
		try&lt;br /&gt;
		{&lt;br /&gt;
			num1.ReadBigInt();			&lt;br /&gt;
			num2.ReadBigInt();&lt;br /&gt;
			cout&amp;lt;&amp;lt;&amp;quot;The BigInt entered is: &amp;quot;;&lt;br /&gt;
			num1.PrintBigInt();&lt;br /&gt;
			cout&amp;lt;&amp;lt;&amp;quot;The BigInt entered is: &amp;quot;;&lt;br /&gt;
			num2.PrintBigInt();&lt;br /&gt;
			cout&amp;lt;&amp;lt;&amp;quot;The sum is: &amp;quot;&amp;lt;&amp;lt;num1 + num2;&lt;br /&gt;
		}&lt;br /&gt;
		catch(OverFlowException ex)&lt;br /&gt;
		{&lt;br /&gt;
			cout&amp;lt;&amp;lt;&amp;quot;The sum has caused OVERFLOW&amp;quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
		cout&amp;lt;&amp;lt;&amp;quot;Do you wish to add more numbers? &amp;quot;;&lt;br /&gt;
		cin&amp;gt;&amp;gt;update;&lt;br /&gt;
		cin.ignore(50,'\n');&lt;br /&gt;
		if(update == 'Y' || update == 'y')&lt;br /&gt;
		{&lt;br /&gt;
			moreNumbers = true;&lt;br /&gt;
		}&lt;br /&gt;
		else&lt;br /&gt;
		{&lt;br /&gt;
			moreNumbers = false;&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
	cout&amp;lt;&amp;lt;&amp;quot;Program Terminated on request.&amp;quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
bool BigInt::ReadBigInt(istream&amp;amp; is)&lt;br /&gt;
{&lt;br /&gt;
	int len = 0;&lt;br /&gt;
	bool tooBig = false;&lt;br /&gt;
	string inputString = &amp;quot;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
	while(!tooBig) //Initialize tooBig, if integer is too big loop until BigInt entered is valid.&lt;br /&gt;
	{&lt;br /&gt;
		cout&amp;lt;&amp;lt;&amp;quot;Enter an integer: &amp;quot;;&lt;br /&gt;
		getline(cin,inputString);&lt;br /&gt;
&lt;br /&gt;
		len = (int)inputString.length(); //Length of the string entered into len&lt;br /&gt;
&lt;br /&gt;
		if(len &amp;gt; MAX)&lt;br /&gt;
		{&lt;br /&gt;
			cout&amp;lt;&amp;lt;&amp;quot;The number you entered is too big, try again!&amp;quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;
			tooBig = false;&lt;br /&gt;
		}&lt;br /&gt;
		else&lt;br /&gt;
		{	&lt;br /&gt;
			StringToBigInt(inputString);&lt;br /&gt;
			tooBig = true;&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
	return true;&lt;br /&gt;
}&lt;br /&gt;
void BigInt::PrintBigInt(ostream&amp;amp; os) const&lt;br /&gt;
{&lt;br /&gt;
	int counter = numDigits - 1;&lt;br /&gt;
&lt;br /&gt;
	for(int i = 0; i &amp;lt; numDigits; i++)&lt;br /&gt;
	{&lt;br /&gt;
		cout&amp;lt;&amp;lt;Digits[counter];&lt;br /&gt;
		counter--;&lt;br /&gt;
	}&lt;br /&gt;
	cout&amp;lt;&amp;lt;endl;&lt;br /&gt;
}&lt;br /&gt;
bool AddBigInts(const BigInt&amp;amp; num1, const BigInt&amp;amp; num2, BigInt&amp;amp; sum)&lt;br /&gt;
{&lt;br /&gt;
	if(num1.numDigits &amp;gt;= num2.numDigits)&lt;br /&gt;
	{&lt;br /&gt;
		firstIntegerLarger(num1, num2, sum);&lt;br /&gt;
	}&lt;br /&gt;
	else&lt;br /&gt;
	{&lt;br /&gt;
		firstIntegerLarger(num2, num1, sum);&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	//If Overflow return false, otherwise return true&lt;br /&gt;
	if(sum.numDigits &amp;gt; MAX)&lt;br /&gt;
	{&lt;br /&gt;
		return false;&lt;br /&gt;
	}&lt;br /&gt;
	else&lt;br /&gt;
	{&lt;br /&gt;
		return true;&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
void firstIntegerLarger(const BigInt&amp;amp; largest, const BigInt&amp;amp; smallest, BigInt&amp;amp; sum)&lt;br /&gt;
{&lt;br /&gt;
	int i;&lt;br /&gt;
	int remainder = 0;&lt;br /&gt;
&lt;br /&gt;
	for(i = 0; i &amp;lt; smallest.numDigits; i++)&lt;br /&gt;
	{&lt;br /&gt;
		sum.Digits[i] = largest.Digits[i] + smallest.Digits[i] + remainder;&lt;br /&gt;
&lt;br /&gt;
		if(sum.Digits[i] &amp;gt;= 10)&lt;br /&gt;
		{&lt;br /&gt;
			sum.Digits[i] = (sum.Digits[i] - 10);&lt;br /&gt;
			remainder = 1;&lt;br /&gt;
		}&lt;br /&gt;
		else&lt;br /&gt;
		{&lt;br /&gt;
			remainder = 0;&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	for(; i &amp;lt; largest.numDigits; i++)&lt;br /&gt;
	{&lt;br /&gt;
		sum.Digits[i] = largest.Digits[i] + remainder;&lt;br /&gt;
&lt;br /&gt;
		if(sum.Digits[i] &amp;gt;= 10)&lt;br /&gt;
		{&lt;br /&gt;
			sum.Digits[i] = (sum.Digits[i] - 10);&lt;br /&gt;
			remainder = 1;&lt;br /&gt;
		}&lt;br /&gt;
		else&lt;br /&gt;
		{&lt;br /&gt;
			remainder = 0;&lt;br /&gt;
		}	&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	if(i == largest.numDigits &amp;amp;&amp;amp; remainder == 1)&lt;br /&gt;
	{&lt;br /&gt;
		sum.Digits[i] = 1;&lt;br /&gt;
		sum.numDigits = largest.numDigits + 1;&lt;br /&gt;
	}&lt;br /&gt;
	else&lt;br /&gt;
	{&lt;br /&gt;
		sum.numDigits = largest.numDigits;&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
void BigInt::StringToBigInt(const string&amp;amp; goodString)&lt;br /&gt;
{&lt;br /&gt;
	int counter = 0;&lt;br /&gt;
	string str = &amp;quot;&amp;quot;;&lt;br /&gt;
	str = goodString;&lt;br /&gt;
	numDigits = (int)str.length();&lt;br /&gt;
	char ch = ' ';&lt;br /&gt;
&lt;br /&gt;
	for(int i = numDigits-1; i &amp;gt;= 0; i--)	//Reverse the string and position of numbers&lt;br /&gt;
	{&lt;br /&gt;
		ch = str[i];			//Convert from char to numeric value	&lt;br /&gt;
		Digits[counter] = ch - '0';	//char c = '2';&lt;br /&gt;
		counter++;			//int n = c - '0';&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
BigInt operator+(const BigInt&amp;amp; num1, const BigInt&amp;amp; num2)&lt;br /&gt;
{&lt;br /&gt;
	BigInt sum;&lt;br /&gt;
	if(AddBigInts(num1,num2,sum) == false)&lt;br /&gt;
	{&lt;br /&gt;
		OverFlowException ex(num1,num2,'+');&lt;br /&gt;
		throw ex;&lt;br /&gt;
	}&lt;br /&gt;
	else&lt;br /&gt;
		return sum;&lt;br /&gt;
}&lt;br /&gt;
ostream&amp;amp; operator&amp;lt;&amp;lt;(ostream&amp;amp; os, const BigInt&amp;amp; num)&lt;br /&gt;
{&lt;br /&gt;
	num.PrintBigInt(os);&lt;br /&gt;
	return os;&lt;br /&gt;
}&lt;br /&gt;
BigInt::BigInt()&lt;br /&gt;
:numDigits(0)&lt;br /&gt;
{}&lt;br /&gt;
BigInt::BigInt(const string&amp;amp; goodString)&lt;br /&gt;
{&lt;br /&gt;
	StringToBigInt(goodString);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Derek Elder</name></author>
	</entry>
</feed>