<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Overclock.net - Overclocking.net - Application Programming</title>
		<link>http://www.overclock.net/</link>
		<description />
		<language>en</language>
		<lastBuildDate>Sun, 22 Nov 2009 02:31:46 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>1</ttl>
		<image>
			<url>http://static.overclock.net/images/oc/misc/rss.jpg</url>
			<title>Overclock.net - Overclocking.net - Application Programming</title>
			<link>http://www.overclock.net/</link>
		</image>
		<item>
			<title>How to make and post Your CPU-Z Validation Link</title>
			<link>http://www.overclock.net/application-programming/613449-how-make-post-your-cpu-z.html</link>
			<pubDate>Sat, 21 Nov 2009 21:23:37 GMT</pubDate>
			<description><![CDATA[I'm not sure if this is the right place to post this so if it needs to be moved then please place it in the correct Area. I often come accross new OCN members lacking the experience to Post a Valid CPU-Z Validation Link. So I made the instructions below. Enjoy.  
  
Thank you, 
  
N2G 
---Quote...]]></description>
			<content:encoded><![CDATA[<div>I'm not sure if this is the right place to post this so if it needs to be moved then please place it in the correct Area. I often come accross new OCN members lacking the experience to Post a Valid CPU-Z Validation Link. So I made the instructions below. Enjoy. <br />
 <br />
Thank you,<br />
 <br />
N2G<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<div>
					Originally Posted by <strong>N2Gaming</strong>
					(Post 7705021)
				</div>
				<div style="font-style:italic">Here are the instructions for how to post your CPU-Z Validation<br />
 <br />
Before you start you'll need to make sure you download and install the <a href="http://www.cpuid.com/cpuz.php" target="_blank">latest CPU-Z Version Found Here</a>. Then you'll need to make sure your computers date and time are set correctly. After you have done all of this you are ready to begin w/the steps listed below.<br />
 <br />
<b>CPU-Z Validation Instructions</b> <br />
 <br />
<ol style="list-style-type: decimal"><li>Start CPU-Z and click on the about tab at the top of CPU-Z to open a seperate window for validation.</li>
<li>Click on the Validation tab in the next window that opens up.</li>
<li>Type in a valid Email Address in the email field.</li>
<li>Click on the submit tab to the right of your email address you just entered.</li>
<li>Find the CPU-Z Banner BB code at the bottom of your new CPU-Z validation.</li>
<li>Highlight the CPU-Z Banner BB code by double left clicking in the URL listed.</li>
<li>Right click on the highlighted BB Code and select copy.</li>
<li>Open the web page you wish to post your CPU-Z Link to.</li>
<li>Now Using your mouse right click in the page you want to paste your CPU-Z Link into and select Paste.</li>
<li>Your CPU-Z link should appear as mine did in Step 10 &quot; Roman Numeral X &quot;.</li>
<li>Click on the Post button and your CPU-Z Validation Link should be posted and properly linked for the every one to view just like mine listed below. :thumb:</li>
</ol><a href="http://valid.canardpc.com/show_oc.php?id=840416" target="_blank"><img src="http://valid.canardpc.com/cache/banner/840416.png" border="0" alt="" onload="NcodeImageResizer.createOn(this);" /></a><br />
<br />
 <br />
<img src="http://imageups.com/files/82/CPU-Z%20Validation%20instructions.JPG" border="0" alt="" onload="NcodeImageResizer.createOn(this);" /></div>
			
			<hr />
		</td>
	</tr>
	</table>
</div></div>

]]></content:encoded>
			<category domain="http://www.overclock.net/application-programming/">Application Programming</category>
			<dc:creator>N2Gaming</dc:creator>
			<guid isPermaLink="true">http://www.overclock.net/application-programming/613449-how-make-post-your-cpu-z.html</guid>
		</item>
		<item>
			<title>high card game c++</title>
			<link>http://www.overclock.net/application-programming/610616-high-card-game-c.html</link>
			<pubDate>Tue, 17 Nov 2009 01:12:17 GMT</pubDate>
			<description>For schoo we have to make a program that outputs 5 cards and says what the highest is like 
 
your cards are 1 6 3 A K 
your highest is A 
the computers cards are 4 5 2 Q J 
The computers highest card is Q 
You win! 
 
We have to do it using a loop, so we cant just use 5 randoms.  Now the problem I...</description>
			<content:encoded><![CDATA[<div>For schoo we have to make a program that outputs 5 cards and says what the highest is like<br />
<br />
your cards are 1 6 3 A K<br />
your highest is A<br />
the computers cards are 4 5 2 Q J<br />
The computers highest card is Q<br />
You win!<br />
<br />
We have to do it using a loop, so we cant just use 5 randoms.  Now the problem I was having at school was that it would sometimes just output 4 numbers instead of 5.  I tried to recreate the code here at home but it didn't work so well.  Although I do have visual c++ 08 express edition and at school they have a 05 version.  But anyways heres what I have do far<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">#include &lt;iostream&gt;<br />
#include &lt;ctime&gt;<br />
using namespace std;<br />
int main ()<br />
{<br />
&nbsp; &nbsp; int random1=0, random2=0, count=5;<br />
<br />
cout&lt;&lt;&quot;Your cards are &quot;;<br />
<br />
&nbsp; &nbsp; do<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; srand(time(0));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; random1 = rand()%14+1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; count++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;&quot;&lt;&lt;random1&lt;&lt;&quot;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; switch(random1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; class 2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;2&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; class 3;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;3&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; class 4;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;4&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; class 5;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;5&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; class 6;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;6&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; class 7;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;7&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; class 8;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;8&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; class 9;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;9&quot;&lt;&lt;endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; class 10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;10&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; class 11;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;J&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; class 12;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;Q&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; class 13;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;K&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; class 14;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;A&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }while (count &lt; 0);<br />
<br />
return 0;<br />
}</code><hr />
</div>now Im getting tons of errors for some reason.<br />
<br />
Error    2    error C2332: 'class' : missing tag name    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    22<br />
<br />
Error    4    error C2143: syntax error : missing ';' before 'constant'    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    22<br />
<br />
Error    5    error C2332: 'class' : missing tag name    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    25<br />
<br />
Error    7    error C2143: syntax error : missing ';' before 'constant'    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    25<br />
Error    8    error C2332: 'class' : missing tag name    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    28<br />
<br />
Error    10    error C2143: syntax error : missing ';' before 'constant'    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    28<br />
Error    11    error C2332: 'class' : missing tag name    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    31<br />
<br />
Error    13    error C2143: syntax error : missing ';' before 'constant'    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    31<br />
<br />
Error    14    error C2332: 'class' : missing tag name    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    34<br />
<br />
Error    16    error C2143: syntax error : missing ';' before 'constant'    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    34<br />
<br />
Error    17    error C2332: 'class' : missing tag name    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    37<br />
<br />
Error    19    error C2143: syntax error : missing ';' before 'constant'    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    37<br />
<br />
Error    20    error C2332: 'class' : missing tag name    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    40<br />
<br />
Error    22    error C2143: syntax error : missing ';' before 'constant'    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    40<br />
<br />
Error    23    error C2332: 'class' : missing tag name    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    43<br />
<br />
Error    25    error C2143: syntax error : missing ';' before 'constant'    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    43<br />
<br />
Error    26    error C2332: 'class' : missing tag name    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    46<br />
<br />
Error    28    error C2143: syntax error : missing ';' before 'constant'    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    46<br />
<br />
Error    29    error C2332: 'class' : missing tag name    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    49<br />
<br />
Error    31    error C2143: syntax error : missing ';' before 'constant'    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    49<br />
<br />
Error    32    error C2332: 'class' : missing tag name    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    52<br />
<br />
Error    34    error C2143: syntax error : missing ';' before 'constant'    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    52<br />
<br />
Error    35    error C2332: 'class' : missing tag name    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    55<br />
<br />
Error    37    error C2143: syntax error : missing ';' before 'constant'    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    55<br />
<br />
Error    38    error C2332: 'class' : missing tag name    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    58<br />
<br />
Error    40    error C2143: syntax error : missing ';' before 'constant'    c:\users\computeruler\documents\visual studio 2008\projects\high card\high card\high card.cpp    58</div>

]]></content:encoded>
			<category domain="http://www.overclock.net/application-programming/">Application Programming</category>
			<dc:creator>computeruler</dc:creator>
			<guid isPermaLink="true">http://www.overclock.net/application-programming/610616-high-card-game-c.html</guid>
		</item>
		<item>
			<title>C re-looping question!</title>
			<link>http://www.overclock.net/application-programming/610605-c-re-looping-question.html</link>
			<pubDate>Tue, 17 Nov 2009 00:54:24 GMT</pubDate>
			<description><![CDATA[Ok so here is my program below, basically a simple conversion program and I just wanted to know how I would make the initial options re-loop if the user does not choose any of the 1-4 options given . 
 
 
Code: 
--------- 
#include<stdio.h> 
 
int main() 
 
{]]></description>
			<content:encoded><![CDATA[<div>Ok so here is my program below, basically a simple conversion program and I just wanted to know how I would make the initial options re-loop if the user does not choose any of the 1-4 options given .<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">#include&lt;stdio.h&gt;<br />
<br />
int main()<br />
<br />
{<br />
<br />
int choice=0;<br />
int choice1=0;<br />
int lengthchoice=0;<br />
int weightchoice=0;<br />
int tempchoice=0;<br />
float km;<br />
float m;<br />
float inch;<br />
float feet;<br />
float lbs;<br />
float gm;<br />
float kilo;<br />
float cel;<br />
float fah;<br />
float kel;<br />
<br />
printf(&quot;\n\t Welcome to my Super Conversion Program&quot;);<br />
<br />
printf(&quot;\n\n Which conversion would you like to make: &quot;);<br />
printf(&quot;\n 1) Length&quot;);<br />
printf(&quot;\n 2) Weight&quot;);<br />
printf(&quot;\n 3) Temperature&quot;);<br />
printf(&quot;\n 4) Exit\n&quot;);<br />
<br />
scanf(&quot;\n%i&quot;, &amp;choice);<br />
<br />
if (choice==1)<br />
{<br />
printf(&quot;\n Which of the following length conversions would you like to make: &quot;);<br />
printf(&quot;\n 1) Metres &gt; Kilomtres&quot;);<br />
printf(&quot;\n 2) Kilomtres &gt; Metres&quot;);<br />
printf(&quot;\n 3) Inches &gt; Feet\n&quot;);<br />
<br />
scanf(&quot;%i&quot;, &amp;lengthchoice);<br />
<br />
switch(lengthchoice)<br />
{<br />
case 1: printf(&quot;\nEnter your desired number to convert: &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; scanf(&quot;%f&quot;, &amp;m);<br />
&nbsp; &nbsp; &nbsp; &nbsp; km = m*.001;<br />
printf(&quot;\nThis number in kilometers is %.2f\n&quot;, km);<br />
break;<br />
<br />
case 2: printf(&quot;\nEnter your desired number to convert: &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; scanf(&quot;%f&quot;, &amp;km);<br />
&nbsp; &nbsp; &nbsp; &nbsp; m = km*1000;<br />
&nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;\nThis number in metres is %.2f\n&quot;, m);<br />
&nbsp; &nbsp; &nbsp; &nbsp; break;<br />
case 3: printf(&quot;\nEnter your desired number to convert : &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; scanf(&quot;%f&quot;, &amp;feet);<br />
&nbsp; &nbsp; &nbsp; &nbsp; inch=feet*0.0833;<br />
&nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;\nThis number in feet is %.2f\n&quot;, inch);<br />
<br />
break;<br />
}<br />
}<br />
else if(choice==2)<br />
{<br />
printf(&quot;\nWhich of the following length conversions would you like to make: &quot;);<br />
printf(&quot;\n 1) Pounds &gt; Grams&quot;);<br />
printf(&quot;\n 2) Grams &gt; Kilograms&quot;);<br />
printf(&quot;\n 3) Kilograms &gt; Grams\n&quot;);<br />
<br />
scanf(&quot;%i&quot;, &amp;lengthchoice);<br />
switch(lengthchoice)<br />
{<br />
<br />
case 1: printf(&quot;\nEnter your desired number to convert: &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; scanf(&quot;%f&quot;, &amp;lbs);<br />
&nbsp; &nbsp; &nbsp; &nbsp; gm = lbs*453.59237;<br />
&nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;\nThis value in grams is %.2f\n&quot;, gm);<br />
&nbsp; &nbsp; &nbsp; &nbsp; break;<br />
case 2: printf(&quot;\nEnter your desired number to convert: &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; scanf(&quot;%f&quot;, &amp;gm);<br />
&nbsp; &nbsp; &nbsp; &nbsp; kilo=gm*0.001;<br />
&nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;\nThis value in kilograms is %.2f\n&quot;, kilo);<br />
&nbsp; &nbsp; &nbsp; &nbsp; break;<br />
case 3: printf(&quot;\nEnter your desired number to convert: &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; scanf(&quot;%f&quot;, &amp;kilo);<br />
&nbsp; &nbsp; &nbsp; &nbsp; gm=kilo*1000;<br />
&nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;\nThis value in grams is %.2f\n&quot;, gm);<br />
<br />
break;<br />
}<br />
}<br />
else if(choice==3)<br />
{<br />
printf(&quot;\nWhich of the following length conversions would you like to make: &quot;);<br />
printf(&quot;\n 1) Fahrenheit &gt; Celsius&quot;);<br />
printf(&quot;\n 2) Celsius &gt; Fahrenheit&quot;);<br />
printf(&quot;\n 3) Celsius &gt; Kelvin\n&quot;);<br />
<br />
scanf(&quot;%i&quot;, &amp;lengthchoice);<br />
<br />
switch(lengthchoice)<br />
{<br />
<br />
case 1: printf(&quot;\nEnter your desired number to convert: &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; scanf(&quot;%f&quot;, &amp;fah);<br />
&nbsp; &nbsp; &nbsp; &nbsp; cel =(fah-32) * (5/9);<br />
&nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;\nThis value in Celsius is %.2f\n&quot;, cel);<br />
&nbsp; &nbsp; &nbsp; &nbsp; break;<br />
case 2: printf(&quot;\nEnter your desired number to convert: &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; scanf(&quot;%f&quot;,&amp;cel);<br />
&nbsp; &nbsp; &nbsp; &nbsp; fah=(cel*(9/5)) + 32;<br />
&nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;\nThis value in Fahrenheit is %.2f\n&quot;, fah);<br />
&nbsp; &nbsp; &nbsp; &nbsp; break;<br />
case 3: printf(&quot;\nEnter your desired number to convert: &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; scanf(&quot;%f&quot;, &amp;cel);<br />
&nbsp; &nbsp; &nbsp; &nbsp; kel = cel+273.15;<br />
&nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;\nThis value in Kelvin is %.2f\n&quot;, kel);<br />
&nbsp; &nbsp; &nbsp; &nbsp; break;<br />
<br />
}<br />
}<br />
else if(choice==4)<br />
{<br />
system (&quot;Quit&quot;);<br />
}<br />
return 0;<br />
}</code><hr />
</div>Thanks!!</div>

]]></content:encoded>
			<category domain="http://www.overclock.net/application-programming/">Application Programming</category>
			<dc:creator>MOCAMBO</dc:creator>
			<guid isPermaLink="true">http://www.overclock.net/application-programming/610605-c-re-looping-question.html</guid>
		</item>
		<item>
			<title>remote shutdown</title>
			<link>http://www.overclock.net/application-programming/608907-remote-shutdown.html</link>
			<pubDate>Fri, 13 Nov 2009 21:37:44 GMT</pubDate>
			<description>would it be possible to make a c++ app that waits for a signal from a specific port and when it gets it  - shutdowns the pc?  
im pretty sure its possible so the the real question is - how hard would it be to make this?</description>
			<content:encoded><![CDATA[<div>would it be possible to make a c++ app that waits for a signal from a specific port and when it gets it  - shutdowns the pc? <br />
im pretty sure its possible so the the real question is - how hard would it be to make this?</div>

]]></content:encoded>
			<category domain="http://www.overclock.net/application-programming/">Application Programming</category>
			<dc:creator>newbie1911</dc:creator>
			<guid isPermaLink="true">http://www.overclock.net/application-programming/608907-remote-shutdown.html</guid>
		</item>
		<item>
			<title>Java Web Browser</title>
			<link>http://www.overclock.net/application-programming/608396-java-web-browser.html</link>
			<pubDate>Thu, 12 Nov 2009 23:54:43 GMT</pubDate>
			<description>Me (and a few friends) are going to try to build a web browser using java. that we can implement on mobile devices. 
 
Anyone know where I would start?  :confused::confused:</description>
			<content:encoded><![CDATA[<div>Me (and a few friends) are going to try to build a web browser using java. that we can implement on mobile devices.<br />
<br />
Anyone know where I would start?  :confused::confused:</div>

]]></content:encoded>
			<category domain="http://www.overclock.net/application-programming/">Application Programming</category>
			<dc:creator>k1ngcor3y</dc:creator>
			<guid isPermaLink="true">http://www.overclock.net/application-programming/608396-java-web-browser.html</guid>
		</item>
		<item>
			<title>Simple VB code</title>
			<link>http://www.overclock.net/application-programming/608235-simple-vb-code.html</link>
			<pubDate>Thu, 12 Nov 2009 19:39:00 GMT</pubDate>
			<description><![CDATA[So does anyone know how to make a code that looks for the existence of another drive on the computer in a specific location? Say I have text.txt on the C: drive. I want to make an IF statement that goes "if text.txt is at C:\ is true, then ....., else". So how would I do that in VB 2008?]]></description>
			<content:encoded><![CDATA[<div>So does anyone know how to make a code that looks for the existence of another drive on the computer in a specific location? Say I have text.txt on the C: drive. I want to make an IF statement that goes &quot;if text.txt is at C:\ is true, then ....., else&quot;. So how would I do that in VB 2008?</div>

]]></content:encoded>
			<category domain="http://www.overclock.net/application-programming/">Application Programming</category>
			<dc:creator>LemonSlice</dc:creator>
			<guid isPermaLink="true">http://www.overclock.net/application-programming/608235-simple-vb-code.html</guid>
		</item>
		<item>
			<title>Array program in C</title>
			<link>http://www.overclock.net/application-programming/605482-array-program-c.html</link>
			<pubDate>Sat, 07 Nov 2009 21:51:28 GMT</pubDate>
			<description>I have the following code and I am not sure that its working right. I am using C. The final result is that the program is suppose to give me the length of each string that is entered that is the second for loop. I do not think this part is working right. I have gone from having no code to what is...</description>
			<content:encoded><![CDATA[<div>I have the following code and I am not sure that its working right. I am using C. The final result is that the program is suppose to give me the length of each string that is entered that is the second for loop. I do not think this part is working right. I have gone from having no code to what is below on my own I just need a little help making sure that this is correct. Any assistance would be greatly appreciated.<br />
<br />
Below are the instructions that I am having problems with. <br />
<br />
Each time the name is read I then have to measure the length and allocate a dynamical string large enough to hold a copy of it. You will then copy the contents of buffer into this newly allocated string and add its<br />
address to the array names. Once you are done filling the array names, each of its element should contain the address of a dynamically allocated copy of each word entered by the user. You will iterate over names and display these strings with a message.Once done, you will deallocate the memory you allocated<br />
<br />
<font color="Blue">I am getting closer. The code now gives me a value of 2 for any input I put in it doesn't matter the length of word. </font><br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">#include &lt;stdio.h&gt;<br />
#include &lt;string.h&gt;<br />
<br />
int str_length(char* names);<br />
void copy(char *buffer, const char *names);<br />
<br />
int main(void)<br />
{<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; int n = 0;<br />
&nbsp; &nbsp; char names[n];<br />
&nbsp; &nbsp; int i = 0;<br />
&nbsp; &nbsp; char buffer[256];<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; printf(&quot;How many names to store: &quot;);<br />
&nbsp; &nbsp; scanf(&quot;%d&quot;, &amp;n);<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; for( i = 0; i &lt; n; i++)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  printf(&quot;names[%d] = &quot;, i);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  scanf(&quot;%s&quot;, buffer);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  copy(buffer, names);<br />
<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; for( i = 0; i &lt; n; i++)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  printf(&quot;buffer[%d] = %s %d\n&quot;, i, buffer, str_length);<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; system(&quot;PAUSE&quot;);&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; return 0;<br />
}<br />
<br />
int str_length(char* names)<br />
{<br />
&nbsp; &nbsp; char* start = names;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; while ( *names++);<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; return names-start;<br />
&nbsp; &nbsp; <br />
}<br />
<br />
void copy(char *buffer, const char *names)<br />
{<br />
&nbsp;  for ( ; ( *buffer = *names ) != '\0'; buffer++, names++ ) ;<br />
&nbsp;<br />
}</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.overclock.net/application-programming/">Application Programming</category>
			<dc:creator>loonyt7</dc:creator>
			<guid isPermaLink="true">http://www.overclock.net/application-programming/605482-array-program-c.html</guid>
		</item>
		<item>
			<title>My simple Fahrenheit to Celcius converter in C#</title>
			<link>http://www.overclock.net/application-programming/603490-my-simple-fahrenheit-celcius-converter-c.html</link>
			<pubDate>Wed, 04 Nov 2009 12:21:45 GMT</pubDate>
			<description><![CDATA[I thought I'd make it easy for people to look at how C# code works. It's overly commented, for people who is not familiar to programming or C# to know what is actually going on: 
 
 
Code: 
--------- 
using System; 
using System.Collections.Generic; 
using System.Text; 
 
//]]></description>
			<content:encoded><![CDATA[<div>I thought I'd make it easy for people to look at how C# code works. It's overly commented, for people who is not familiar to programming or C# to know what is actually going on:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">using System;<br />
using System.Collections.Generic;<br />
using System.Text;<br />
<br />
//<br />
// Name: Sebastian 'gonX' Jensen<br />
// Date: 4. Nov 09<br />
// Program: A simple Fahrenheit from/to Celcius converter<br />
// Known to compile fine in: Microsoft Visual Express C# 2008<br />
// Comments:&nbsp; &nbsp; In this program I've used simple commands which should be fairly straightforward to understand.<br />
//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Please notice that I've moved Main() to the bottom of the document so that it does not complain<br />
//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; that it's missing some functions that I'm calling from Main(). Yes, I could have assigned them<br />
//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; earlier in the program, but this is less confusing to look at.<br />
//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Please throw me a PM on Overclock.net if you do not understand parts of my code - my username is gonX.<br />
//<br />
<br />
namespace switcheslawl<br />
{<br />
&nbsp; &nbsp; class Program<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; // Here's an example of how Main() is not the first variable in the program.<br />
&nbsp; &nbsp; &nbsp; &nbsp; static void toFahrenheit()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Let's assign the variables we need. We use double so that we don't get unnecessary rounding.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string temporary;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; double input;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; double temperature;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Clear it so that it doesn't look messy.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.Clear();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Here I'll be telling the user to input his temperature in degrees celcius.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Please notice that I am not using Console.WriteLine(), but instead Console.Write()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // I'm using a temporary variable as calculating with a string is troublesome,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // it is parsed to a double throughout the code though.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // This is what makes C# different from C++ - in C++ I would not have needed to parse it.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.Write(&quot;Please enter the temperature in °C: &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temporary = Console.ReadLine();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; input = double.Parse(temporary);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temperature = input * 1.8 + 32;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // The :N2 tells the program to only output 2 decimals. They're rounded off, which is not that<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // good for people who actively work with numbers, but it'll work for most people.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.Write(&quot;\n{0 :N2} °C is {1 :N2} °F\nPress a button to continue\n&quot;, input, temperature);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.ReadKey();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; static void toCelcius()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // All this is the same as in the toFahrenheit() static, except that the formula for calculating is different.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string temporary;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; double input;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; double temperature;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.Clear();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.Write(&quot;Please enter the temperature in °F: &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temporary = Console.ReadLine();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; input = double.Parse(temporary);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temperature = (input - 32) / 1.8;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.Write(&quot;\n{0 :N2} °F is {1 :N2} °C\nPress a button to continue\n&quot;, input, temperature);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.ReadKey();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; static void Main()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Here I have to assign option to 0, otherwise it'd complain about option not being assigned<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string option = &quot;0&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // I can type &quot;stop&quot; to stop the program.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (option != &quot;stop&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.Clear();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;What do you want to calculate to?\n\nF. To Fahrenheit\nC. To Celcius\nstop to stop.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; option = Console.ReadLine();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Most people should be acquainted with switches if they've been programming before. This is fairly similar to C++ syntax.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; switch (option.ToLower())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case &quot;f&quot;:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; toFahrenheit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case &quot;c&quot;:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; toCelcius();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; option = &quot;stop&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
}</code><hr />
</div>Suggestions to clean up my code wouldn't be bad either :)</div>

]]></content:encoded>
			<category domain="http://www.overclock.net/application-programming/">Application Programming</category>
			<dc:creator>gonX</dc:creator>
			<guid isPermaLink="true">http://www.overclock.net/application-programming/603490-my-simple-fahrenheit-celcius-converter-c.html</guid>
		</item>
		<item>
			<title>Pac-Man and Space Invaders... In Excel</title>
			<link>http://www.overclock.net/application-programming/601668-pac-man-space-invaders-excel.html</link>
			<pubDate>Sun, 01 Nov 2009 11:47:05 GMT</pubDate>
			<description>Yep, someone has made a pacman and space invaders clone in Microsoft excel doc form. 
 
On an aside, though Geocities is dead, these games live on at the Geocites.jp (http://www.geocities.jp/nchikada/pac/) host. 
Grab it now before the good people at Yahoo notice and axe the Japanese service too ;)</description>
			<content:encoded><![CDATA[<div>Yep, someone has made a pacman and space invaders clone in Microsoft excel doc form.<br />
<br />
On an aside, though Geocities is dead, these games live on at the <a href="http://www.geocities.jp/nchikada/pac/" target="_blank">Geocites.jp</a> host.<br />
Grab it now before the good people at Yahoo notice and axe the Japanese service too ;)</div>

]]></content:encoded>
			<category domain="http://www.overclock.net/application-programming/">Application Programming</category>
			<dc:creator>UnseenRidge</dc:creator>
			<guid isPermaLink="true">http://www.overclock.net/application-programming/601668-pac-man-space-invaders-excel.html</guid>
		</item>
		<item>
			<title>Selection sorting Arrays.</title>
			<link>http://www.overclock.net/application-programming/599720-selection-sorting-arrays.html</link>
			<pubDate>Wed, 28 Oct 2009 21:44:35 GMT</pubDate>
			<description><![CDATA[Here I am again, and today I'm trying to figure out how to apply the selection sort algorithm to a group of arrays that I have.  
 
-1st array consists of 30 names 
-2,3,and 4 consist of separate statistics relating to each name. 
 
I have to sort the names alphabetically, A-Z, while simultaneously...]]></description>
			<content:encoded><![CDATA[<div>Here I am again, and today I'm trying to figure out how to apply the selection sort algorithm to a group of arrays that I have. <br />
<br />
-1st array consists of 30 names<br />
-2,3,and 4 consist of separate statistics relating to each name.<br />
<br />
I have to sort the names alphabetically, A-Z, while simultaneously swapping the corresponding stats from the other three arrays. <br />
<br />
I've barely hobbled through the rest of my arrays assignment, and this one has me stumped. <br />
Can anyone help me?<br />
<br />
Here is the rest of the program that I've developed so far. <br />
Function 3 is where I need help.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">#include &lt;iostream&gt;<br />
#include &lt;iomanip&gt;<br />
#include &lt;ctype.h&gt;<br />
#include &lt;fstream&gt;<br />
using namespace std;<br />
<br />
int buildArrays(int[], int[], int[]);<br />
void printArrays( string[], int[], int[], int[], int);<br />
void sortArrays( string[],int[], int[], int[], int);<br />
<br />
#define NUM_PLAY 30<br />
int main()<br />
{<br />
int goals[NUM_PLAY];<br />
int assists[NUM_PLAY];<br />
int shots[NUM_PLAY];<br />
string players[NUM_PLAY] = { &quot;Martin Havlat&quot;, &quot;Patrick Kane&quot;, &quot;Jonathan Toews&quot;,<br />
&quot;Kris Versteeg&quot;, &quot;Brian Campbell&quot;, &quot;Andrew Ladd&quot;,<br />
&quot;Dave Bolland&quot;, &quot;Patrick Sharp&quot;, &quot;Duncan Keith&quot;,<br />
&quot;Cam Barker&quot;, &quot;Dustin Byfuglien&quot;, &quot;Brent Seabrook&quot;,<br />
&quot;Troy Brouwer&quot;, &quot;Sammy Pahlsson&quot;, &quot;Colin Fraser&quot;,<br />
&quot;Ben Eager&quot;, &quot;Matt Walker&quot;, &quot;Adam Burish&quot;,<br />
&quot;Aaron Johnson&quot;, &quot;Niklas Hjalmarsson&quot;, &quot;Brent Sopel&quot;,<br />
&quot;Jack Skille&quot;, &quot;Jordan Hendry&quot;, &quot;Pascal Pelletier&quot;,<br />
&quot;Tim Brent&quot;, &quot;Jacob Dowell&quot; };<br />
int numberOfPlayers = 0;<br />
numberOfPlayers = buildArrays(goals, assists, shots);<br />
printArrays(players, goals, assists, shots, numberOfPlayers);<br />
sortArrays(players, goals, assists, shots, numberOfPlayers);<br />
system (&quot;pause&quot;);<br />
<br />
return 0;<br />
}<br />
<br />
<br />
<br />
//Function 1 constructs the arrays<br />
<br />
int buildArrays(int goals[], int assists[], int shots[])<br />
{<br />
ifstream inFile;<br />
inFile.open( &quot;averages.txt&quot; );<br />
if ( inFile.fail() )<br />
{<br />
cout &lt;&lt; &quot;input file did not open&quot;;<br />
exit(0);<br />
}<br />
int num;<br />
int count = 0;<br />
while( inFile )<br />
{<br />
inFile &gt;&gt; num; <br />
goals[count] = num;<br />
inFile &gt;&gt; num;<br />
assists[count] = num;<br />
inFile &gt;&gt; num;<br />
shots[count] = num;<br />
++count;<br />
}<br />
inFile.close();<br />
return count;<br />
}<br />
//Function 2 prints out the data <br />
void printArrays( string players[], int goals[], int assists[], int shots[], int numberOfPlayers)<br />
{ <br />
cout&lt;&lt;&quot;\nChicago Blackhawks 2008-2009 Player Stats&quot;;<br />
cout&lt;&lt;&quot;\nPlayer Goals Assists Points Shots Shooting%&quot;;<br />
for(int count = 0; count&lt;numberOfPlayers; ++count) {<br />
<br />
cout&lt;&lt;players[count]<br />
&lt;&lt;setw(5)<br />
&lt;&lt;goals[count]<br />
&lt;&lt;setw(3)<br />
&lt;&lt;assists[count]<br />
&lt;&lt;setw(3)<br />
&lt;&lt; goals[count] + assists[count]<br />
&lt;&lt;setw(3)<br />
&lt;&lt;shots[count]<br />
&lt;&lt;setw(3)<br />
&lt;&lt;goals[count] / shots[count] * 100;<br />
}<br />
}<br />
//Function 3 sorts in ascending order based on names<br />
void sortArrays( string players[], int goals[], int assists[], int shots[], int numberOfPlayers)<br />
{<br />
//!!!!Selection Sort Function Here!!!!<br />
&nbsp; <br />
&nbsp; <br />
&nbsp; <br />
&nbsp; <br />
<br />
cout&lt;&lt;&quot;\nChicago Blackhawks 2008-2009 Player Stats&quot;;<br />
cout&lt;&lt;&quot;\nPlayer Goals Assists Points Shots Shooting%&quot;;<br />
for(int count = 0; count&lt;numberOfPlayers; ++count) {<br />
<br />
cout&lt;&lt;players[count]<br />
&lt;&lt;setw(5)<br />
&lt;&lt;goals[count]<br />
&lt;&lt;setw(3)<br />
&lt;&lt;assists[count]<br />
&lt;&lt;setw(3)<br />
&lt;&lt; goals[count] + assists[count]<br />
&lt;&lt;setw(3)<br />
&lt;&lt;shots[count]<br />
&lt;&lt;setw(3)<br />
&lt;&lt;goals[count] / shots[count] * 100;<br />
}<br />
}</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.overclock.net/application-programming/">Application Programming</category>
			<dc:creator>tofunater</dc:creator>
			<guid isPermaLink="true">http://www.overclock.net/application-programming/599720-selection-sorting-arrays.html</guid>
		</item>
		<item>
			<title>OpenCV Help</title>
			<link>http://www.overclock.net/application-programming/596446-opencv-help.html</link>
			<pubDate>Fri, 23 Oct 2009 14:15:34 GMT</pubDate>
			<description>Does anyone know how to get the non-white area of an image using openCV?</description>
			<content:encoded><![CDATA[<div>Does anyone know how to get the non-white area of an image using openCV?</div>

]]></content:encoded>
			<category domain="http://www.overclock.net/application-programming/">Application Programming</category>
			<dc:creator>Win == True</dc:creator>
			<guid isPermaLink="true">http://www.overclock.net/application-programming/596446-opencv-help.html</guid>
		</item>
	</channel>
</rss>
