<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Patryksharks321's Weblog</title>
	<atom:link href="http://patryksharks321.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://patryksharks321.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sat, 27 Sep 2008 11:11:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='patryksharks321.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Patryksharks321's Weblog</title>
		<link>http://patryksharks321.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://patryksharks321.wordpress.com/osd.xml" title="Patryksharks321&#039;s Weblog" />
	<atom:link rel='hub' href='http://patryksharks321.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Using vector</title>
		<link>http://patryksharks321.wordpress.com/2008/09/27/using-vector/</link>
		<comments>http://patryksharks321.wordpress.com/2008/09/27/using-vector/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 08:37:59 +0000</pubDate>
		<dc:creator>patryksharks321</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Add new tag]]></category>

		<guid isPermaLink="false">http://patryksharks321.wordpress.com/?p=42</guid>
		<description><![CDATA[So what is a vector? It&#8217;s an array with that difference that we can change it&#8217;s size during the time that the program is functioning Let&#8217;s show a short program with it: #include &#60;vector&#62; include &#60;iostream&#62; using namespace std; int main() { vector&#60;int&#62; example; for(int i=0;int i&#60;=6;++i) { example.push_back(i); cout&#60;&#60;example[i]&#60;&#60;endl; } getchar(); return 0; } [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patryksharks321.wordpress.com&amp;blog=4126749&amp;post=42&amp;subd=patryksharks321&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So what is a vector?<br />
It&#8217;s an array with that difference that we can change it&#8217;s size during the time that the program is functioning<br />
Let&#8217;s show a short program with it:</p>
<ol style="border:1px solid #99ccee;position:relative;left:150px;color:#000020;width:300px;">
<li> #include &lt;vector&gt;</li>
<li>include &lt;iostream&gt;</li>
<li>using namespace std;</li>
<li>int main()</li>
<li>{</li>
<li>vector&lt;int&gt; example;</li>
<li>for(int i=0;int i&lt;=6;++i)</li>
<li>{</li>
<li>example.push_back(i);</li>
<li>cout&lt;&lt;example[i]&lt;&lt;endl;</li>
<li>}</li>
<li>getchar();</li>
<li>return 0;</li>
<li>}</li>
</ol>
<p>First we include a  file at the top to be able to creat vector arrays<br />
The next part you don&#8217;t understand is probably this:</p>
<div style="border:1px solid #99ccee;width:300px;background-color:#cccccc;display:block;position:relative;left:150px;color:#000020;margin:15px;padding:5px;">
<p><code><br />
vector&lt;int&gt; example;<br />
</code></div>
<p>Well it&#8217;s actually really simple. In this line we define a vector with int values<br />
What is the size?<br />
Well actually there is no size because the vector allocates it&#8217;s memory dynamicly that means it can change it&#8217;s memory while the program is running and that is what makes it so nifty<br />
The next part you don&#8217;t understand is probably this:</p>
<div style="border:1px solid #99ccee;width:300px;background-color:#cccccc;display:block;position:relative;left:150px;color:#000020;margin:15px;padding:5px;">
<p><code><br />
for(int i=0;int i&lt;=6;++i)<br />
{example.push_back(i);<br />
cout&lt;&lt;example[i]&lt;&lt;endl;<br />
}</code></div>
<p>What does this code do?<br />
Well if you don&#8217;t know the concept of loops it might me strange(I&#8217;ll explain them in my next tutorial) but basicly it repeats itself 7 times until the i value is bigger than 7 and while it repeats itself it does:</p>
<div style="border:1px solid #99ccee;width:300px;background-color:#cccccc;display:block;position:relative;left:150px;color:#000020;margin:15px;padding:5px;">
<p><code><br />
example.push_back(i);<br />
cout&lt;&lt;example[i]&lt;&lt;endl;<br />
</code></div>
<p>First it insert&#8217;s the value of i into the table(at the very and of the vector array) and then it print&#8217;s it on the screen</p>
<p align="right">Well I hope I explained the problem<br />
greetings patryksharks321</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patryksharks321.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patryksharks321.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patryksharks321.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patryksharks321.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/patryksharks321.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/patryksharks321.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/patryksharks321.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/patryksharks321.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patryksharks321.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patryksharks321.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patryksharks321.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patryksharks321.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patryksharks321.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patryksharks321.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patryksharks321.wordpress.com&amp;blog=4126749&amp;post=42&amp;subd=patryksharks321&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://patryksharks321.wordpress.com/2008/09/27/using-vector/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/da950dc666659fbc680b3db1cd8505e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">patryksharks321</media:title>
		</media:content>
	</item>
		<item>
		<title>C++ and if statements</title>
		<link>http://patryksharks321.wordpress.com/2008/09/14/c-and-if-statements/</link>
		<comments>http://patryksharks321.wordpress.com/2008/09/14/c-and-if-statements/#comments</comments>
		<pubDate>Sun, 14 Sep 2008 13:34:59 +0000</pubDate>
		<dc:creator>patryksharks321</dc:creator>
				<category><![CDATA[C++]]></category>

		<guid isPermaLink="false">http://patryksharks321.wordpress.com/?p=30</guid>
		<description><![CDATA[In the last tutorial describing variables I mentioned the if statement in the context of the bool variableFirst let&#8217;s show write a example program: #include &#60;iostream&#62; using namespace std; int main() {int age; cout&#60;&#60;"To enter this page with erotic contents you have to be adult"&#60;&#60;endl; cout&#60;&#60;"What is your age&#60;&#60;endl; cin&#62;&#62;age; if(age&#60;18) { cout&#60;&#60;"Sorry your to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patryksharks321.wordpress.com&amp;blog=4126749&amp;post=30&amp;subd=patryksharks321&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p align="right">In the last tutorial describing variables I mentioned the</p>
<p style="text-align:center;">if</p>
<p>statement in the context of the bool variableFirst let&#8217;s show write a example program:</p>
<div style="border:1px solid #99ccee;width:300px;background-color:#cccccc;display:block;position:relative;left:150px;color:#000020;margin:15px;padding:5px;">
<p><code>#include &lt;iostream&gt;<br />
using namespace std;<br />
int main()<br />
{int age;<br />
cout&lt;&lt;"To enter this page with erotic contents you have to be adult"&lt;&lt;endl;<br />
cout&lt;&lt;"What is your age&lt;&lt;endl;<br />
cin&gt;&gt;age;<br />
if(age&lt;18)<br />
{<br />
cout&lt;&lt;"Sorry your to young"&lt;&lt;endl;<br />
}<br />
if(age=&gt;18)<br />
{<br />
cout&lt;&lt;"Haha we got you, You pervert"&lt;&lt;endl;<br />
}<br />
getchar();<br />
return 0;}</code></div>
<p>So now that we have written the code let&#8217;s explain what it does:<br />
First it print&#8217;s out a question about our age,then it takes input from the keyboard about our age<br />
This should all be clear if you read my previous tutorial titled &#8220;Taking input within a program&#8221;<br />
Now let&#8217;s see the main part of our program that is the</p>
<p style="text-align:center;">if</p>
<p>What it does is checkes if we are above 18 years old,18 years old or beneath the age of 18 and then according to the if statement prints something</p>
<p style="text-align:center;">if</p>
<p>statement looks something like this:</p>
<div style="border:1px solid #99ccee;width:300px;background-color:#cccccc;display:block;position:relative;left:150px;color:#000020;margin:15px;padding:5px;">if(condition)<br />
{<br />
code to do&#8230;.<br />
}</div>
<p>The condition can be a comparisson of to variables,comparison of a variable with data of the type of which it is(for example int x; if(x&gt;1) )and many others</p>
<p align="right">Well I hope I explained the problem<br />
greetings patryksharks321</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/patryksharks321.wordpress.com/30/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/patryksharks321.wordpress.com/30/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patryksharks321.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patryksharks321.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patryksharks321.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patryksharks321.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/patryksharks321.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/patryksharks321.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/patryksharks321.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/patryksharks321.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patryksharks321.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patryksharks321.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patryksharks321.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patryksharks321.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patryksharks321.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patryksharks321.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patryksharks321.wordpress.com&amp;blog=4126749&amp;post=30&amp;subd=patryksharks321&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://patryksharks321.wordpress.com/2008/09/14/c-and-if-statements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/da950dc666659fbc680b3db1cd8505e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">patryksharks321</media:title>
		</media:content>
	</item>
		<item>
		<title>Variables in C++</title>
		<link>http://patryksharks321.wordpress.com/2008/09/14/variables-in-c/</link>
		<comments>http://patryksharks321.wordpress.com/2008/09/14/variables-in-c/#comments</comments>
		<pubDate>Sun, 14 Sep 2008 11:54:02 +0000</pubDate>
		<dc:creator>patryksharks321</dc:creator>
				<category><![CDATA[C++]]></category>

		<guid isPermaLink="false">http://patryksharks321.wordpress.com/?p=23</guid>
		<description><![CDATA[This tutorial will describe the diffrent type of variables in c++ but first let&#8217;s tell ourselfs what a variable is? It&#8217;s a pointer to some memory in your program that cointans some specific type of data Now to go on with this lesson let&#8217;s explain what kind of variables we have: numeric text logical defined [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patryksharks321.wordpress.com&amp;blog=4126749&amp;post=23&amp;subd=patryksharks321&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p align="right">This tutorial will describe the diffrent type of variables in c++ but first let&#8217;s tell ourselfs what a variable is?</p>
<div style="border:1px solid #99ccee;width:300px;background-color:#cccccc;display:block;position:relative;left:150px;margin:15px;padding:5px;"><strong>It&#8217;s a pointer to some memory in your program that cointans some specific type of data</strong></div>
<p>Now to go on with this lesson let&#8217;s explain what kind of variables we have:</p>
<ul>
<li>numeric</li>
<li>text</li>
<li>logical</li>
<li>defined by the user</li>
</ul>
<p>Let&#8217;s start from the begining</p>
<p><strong>1.</strong>Numeric variables have 2 main representatives:<br />
-int<br />
-float<br />
Int can contain varialbes from about -32,000 to 32,000 without numbers after a dot and takes 4 bajts of memory(32 bit)<br />
Float can have up to 6 digits in it and can go after the dot that means 3.5555 and so on</p>
<p><strong>2.</strong>Text variables divide also into 2 types:<br />
-char<br />
-string<br />
Char is a single sign(number,letter and so on)<br />
String is a object defined in the string.h class that contains as many signs as we want to and it modifies it&#8217;s size itself(there is no limit to it)</p>
<p><strong>3.</strong>Logical variables are represented by bool that can contain 2 values:<br />
-true<br />
-false<br />
It is especially helpful  with the <strong><br />
</strong></p>
<h3><strong>if</strong></h3>
<p><strong> </strong>statement  which I will explain in some further tutorials</p>
<p><strong>4.</strong>Variables defined by user are variables that user created himself to make the program shorter and more efficient(it might sound weird but I&#8217;ll explain it soon) such as:classes and structures</p>
<p align="right">Well that would be it<br />
greetings patryksharks321</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/patryksharks321.wordpress.com/23/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/patryksharks321.wordpress.com/23/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patryksharks321.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patryksharks321.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patryksharks321.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patryksharks321.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/patryksharks321.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/patryksharks321.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/patryksharks321.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/patryksharks321.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patryksharks321.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patryksharks321.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patryksharks321.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patryksharks321.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patryksharks321.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patryksharks321.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patryksharks321.wordpress.com&amp;blog=4126749&amp;post=23&amp;subd=patryksharks321&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://patryksharks321.wordpress.com/2008/09/14/variables-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/da950dc666659fbc680b3db1cd8505e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">patryksharks321</media:title>
		</media:content>
	</item>
		<item>
		<title>Taking input within a program</title>
		<link>http://patryksharks321.wordpress.com/2008/08/25/taking-input-within-a-program/</link>
		<comments>http://patryksharks321.wordpress.com/2008/08/25/taking-input-within-a-program/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 20:21:18 +0000</pubDate>
		<dc:creator>patryksharks321</dc:creator>
				<category><![CDATA[C++]]></category>

		<guid isPermaLink="false">http://patryksharks321.wordpress.com/?p=21</guid>
		<description><![CDATA[The last program we created printed a text on the screen and we explained ourselfs what we had to do to get that effect. This tutorial will describe how to take input from a user and next print that input out on the screen So let&#8217;s start with a bit of hard code #include &#60;iostream&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patryksharks321.wordpress.com&amp;blog=4126749&amp;post=21&amp;subd=patryksharks321&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="text-indent:15px;">The last program we created printed a text on the screen and we explained ourselfs what we had to do to get that effect.</div>
<p>This tutorial will describe how to take input from a user and next print that input out on the screen<br />
So let&#8217;s start with a bit of hard code</p>
<div style="border:1px solid #99ccee;width:300px;background-color:#cccccc;display:block;position:relative;left:150px;color:#000020;margin:15px;padding:5px;">
<p>#include &lt;iostream&gt;<br />
#include &lt;string&gt;<br />
using namespace std;<br />
<code>int main()</code><br />
{string name;<br />
int age;<br />
cout&lt;&lt;&#8221;What your name?&#8221;&lt;&lt;endl;<br />
cin&gt;&gt;name;<br />
cout&lt;&lt;&#8221;How old are you?&#8221;&lt;&lt;endl;<br />
cin&gt;&gt;age;<br />
cout&lt;&lt;&#8221;Your name is&#8221;&lt;&lt;&#8221;and you are&lt;&lt;&#8221;years old&#8221;&lt;&lt;endl;<br />
getchar();<br />
return 0;<br />
}</div>
<div style="text-indent:15px;">Now let&#8217;s start explaining:<br />
-#include &lt;iostream&gt;  we now from the last program<br />
-#include &lt;string&gt;  let&#8217;s you operate on strings of letters through the string class</div>
<p>now the important part</p>
<div style="border:1px solid #99ccee;width:300px;background-color:#cccccc;display:block;position:relative;left:150px;color:#000020;margin:15px;padding:5px;">string name;<br />
int age;</div>
<p>Here we define a string variable which can contain a number of singel letters and a integer/numeric value<br />
another line you probably don&#8217;t understand is</p>
<div style="border:1px solid #99ccee;width:300px;background-color:#cccccc;display:block;position:relative;left:150px;color:#000020;margin:15px;padding:5px;">(&#8230;)<br />
cin&gt;&gt;name;<br />
(&#8230;)<br />
cin&gt;&gt;age;</div>
<p>These basicly tells the computer to wait for the user to type in a string of letters in the first case and some numbers in the second(they can only be whole numbers not 4,5 or so if you want such than you need to define the variable as float)<br />
The rest you should understand I think</p>
<p align="right">Well I hope I was able to make it clearer if somebody needed it<br />
greetings patryksharks321</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/patryksharks321.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/patryksharks321.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patryksharks321.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patryksharks321.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patryksharks321.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patryksharks321.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/patryksharks321.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/patryksharks321.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/patryksharks321.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/patryksharks321.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patryksharks321.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patryksharks321.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patryksharks321.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patryksharks321.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patryksharks321.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patryksharks321.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patryksharks321.wordpress.com&amp;blog=4126749&amp;post=21&amp;subd=patryksharks321&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://patryksharks321.wordpress.com/2008/08/25/taking-input-within-a-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/da950dc666659fbc680b3db1cd8505e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">patryksharks321</media:title>
		</media:content>
	</item>
		<item>
		<title>Explaining your first program in C++</title>
		<link>http://patryksharks321.wordpress.com/2008/08/25/explaining-your-first-program-in-c/</link>
		<comments>http://patryksharks321.wordpress.com/2008/08/25/explaining-your-first-program-in-c/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 17:17:58 +0000</pubDate>
		<dc:creator>patryksharks321</dc:creator>
				<category><![CDATA[C++]]></category>

		<guid isPermaLink="false">http://patryksharks321.wordpress.com/?p=15</guid>
		<description><![CDATA[So let&#8217;s take the program piece by piece a part First element is: #include This element tell us that we want to include into our program some external function/methods or classes but what are we including? Well that comes up next iostream It should be but let&#8217;s talk we just want to describe the components [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patryksharks321.wordpress.com&amp;blog=4126749&amp;post=15&amp;subd=patryksharks321&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="text-indent:15px;">So let&#8217;s take the program piece by piece a part<br />
First element is:</p>
<div style="border:1px solid #99ccee;width:200px;background-color:#cccccc;display:block;position:relative;left:150px;color:#000020;margin:15px;padding:5px;">#include</div>
<div style="text-indent:15px;">This element tell us that we want to include into our program some external function/methods or classes but what are we including? Well that comes up next</div>
<div style="border:1px solid #99ccee;width:200px;background-color:#cccccc;display:block;position:relative;left:150px;color:#000020;margin:15px;padding:5px;">iostream</div>
<div style="text-indent:15px;">It should be  but let&#8217;s talk we just want to describe the components<br />
What does iostream take care of?<br />
Iostream allows us to print on the screen and take text/values from your keyboard for example:cout(output)/cin(input)<br />
oki let&#8217;s go on</p>
<div style="border:1px solid #99ccee;width:200px;background-color:#cccccc;display:block;position:relative;left:150px;color:#000020;margin:15px;padding:5px;">using namespace std;</div>
<p>This allows us to use cout without having to write every time before it std</p></div>
<p>Now we get down to the real code at last</p>
<div style="border:1px solid #99ccee;width:200px;background-color:#cccccc;display:block;position:relative;left:150px;color:#000020;margin:15px;padding:5px;">int main()<br />
{<br />
(&#8230;)<br />
}</div>
<p>The int main contains our program and is itself a function that returns a int value(numeric)</p>
<div style="border:1px solid #99ccee;width:200px;background-color:#cccccc;display:block;position:relative;left:150px;color:#000020;margin:15px;padding:5px;">cout&lt;&lt;&#8221;Hello World&#8221;&lt;&lt;endl;</div>
<p>This part allows us to output text on the screen by using cout and &lt;&lt;<br />
We were outputing a fragment of text not a value so we used &#8221; &#8221; if hadn&#8217;t used it we would have gotten an error because we didn&#8217;t define a variable called Hello World</p>
<div style="border:1px solid #99ccee;width:200px;background-color:#cccccc;display:block;position:relative;left:150px;color:#000020;margin:15px;padding:5px;">getchar();</div>
<p>this function wait&#8217;s for us to enter a key and by that we can see the output of the program(if we hadn&#8217;t done that it would blink fast and turn of)</p>
<div style="border:1px solid #99ccee;width:200px;background-color:#cccccc;display:block;position:relative;left:150px;color:#000020;margin:15px;padding:5px;">return 0;</div>
<p>this is the integer value the int main() function returns to signal the programs ended succesfully</p>
<p align="right">I hope it might help some beginners<br />
greetings patryksharks321</p>
</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/patryksharks321.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/patryksharks321.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patryksharks321.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patryksharks321.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patryksharks321.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patryksharks321.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/patryksharks321.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/patryksharks321.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/patryksharks321.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/patryksharks321.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patryksharks321.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patryksharks321.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patryksharks321.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patryksharks321.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patryksharks321.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patryksharks321.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patryksharks321.wordpress.com&amp;blog=4126749&amp;post=15&amp;subd=patryksharks321&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://patryksharks321.wordpress.com/2008/08/25/explaining-your-first-program-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/da950dc666659fbc680b3db1cd8505e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">patryksharks321</media:title>
		</media:content>
	</item>
		<item>
		<title>Gettings started &#8211; Part One(installing a compiler)-Windows</title>
		<link>http://patryksharks321.wordpress.com/2008/07/02/gettings-started-part-oneinstalling-a-compiler-windows/</link>
		<comments>http://patryksharks321.wordpress.com/2008/07/02/gettings-started-part-oneinstalling-a-compiler-windows/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 21:11:47 +0000</pubDate>
		<dc:creator>patryksharks321</dc:creator>
				<category><![CDATA[C++]]></category>

		<guid isPermaLink="false">http://patryksharks321.wordpress.com/?p=6</guid>
		<description><![CDATA[This tutorial should lead through installing a C++ IDE on Windows and show you how to write your first program in this language Download and install First program Downloading and installing an IDE So if you want to start programming in C++ you&#8217;ll have to get a tool for it.I propose dev-cpp for this purpose: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patryksharks321.wordpress.com&amp;blog=4126749&amp;post=6&amp;subd=patryksharks321&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:center;"><strong>This tutorial should lead through installing a C++ IDE on Windows and show you how to write your first program in this language</strong></p>
<ol>
<li><a href="#punkt 1.glowny">Download and install</a></li>
<li><a href="#program">First program</a></li>
</ol>
<p style="text-align:center;"><a name="punkt 1.glowny">Downloading and installing an IDE</a></p>
<blockquote>
<p style="text-align:center;">So if you want to start programming in C++ you&#8217;ll have to get a tool for it.I propose dev-cpp for this purpose:<br />
Dev-C++ is a free integrated development environment (IDE) distributed under the GNU General Public License for programming in C/C++. It is bundled with the open source MinGW compiler. The IDE is written in Delphi.</p></blockquote>
<p style="text-align:left;">Then let&#8217;s start.</p>
<p style="text-align:center;"><strong>1.Downloading and installing</strong></p>
<p>Point one go to the download page<br />
<a class="aligncenter" title="Download page" href="http://www.bloodshed.net/dev/devcpp.html" target="_blank">http://www.bloodshed.net/dev/devcpp.html</a></p>
<p><a href="http://patryksharks321.files.wordpress.com/2008/07/11.png"><img class="aligncenter" src="http://patryksharks321.files.wordpress.com/2008/07/11.png?w=100&#038;h=40" alt="" width="100" height="40" /></a></p>
<p>After downloading the file start the .exe and basicly click next,next etc.(you might want to choose where you have your files kept for safety but that is your one choice by default they are installed in C:\devcpp)<br />
<a name="program"><br />
</a></p>
<p style="text-align:center;"><a name="program"><strong> 2. Your first program</strong></a></p>
<p style="text-align:left;">Open the dev-cpp and click on the file tab at the top and choose new file</p>
<p style="text-align:left;">type this in it:</p>
<div style="border:1px solid #99ccee;width:200px;background-color:#cccccc;display:block;position:relative;left:150px;color:#000020;margin:15px;padding:5px;">
#include &lt;iostream&gt;<br />
using namespace std;<br />
int main()<br />
{cout&lt;&lt;&#8221;Hello World&lt;&lt;std::endl;<br />
getchar();<br />
return 0;<br />
}</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/patryksharks321.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/patryksharks321.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patryksharks321.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patryksharks321.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patryksharks321.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patryksharks321.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/patryksharks321.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/patryksharks321.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/patryksharks321.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/patryksharks321.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patryksharks321.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patryksharks321.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patryksharks321.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patryksharks321.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patryksharks321.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patryksharks321.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patryksharks321.wordpress.com&amp;blog=4126749&amp;post=6&amp;subd=patryksharks321&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://patryksharks321.wordpress.com/2008/07/02/gettings-started-part-oneinstalling-a-compiler-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/da950dc666659fbc680b3db1cd8505e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">patryksharks321</media:title>
		</media:content>

		<media:content url="http://patryksharks321.files.wordpress.com/2008/07/11.png" medium="image" />
	</item>
		<item>
		<title>About C++</title>
		<link>http://patryksharks321.wordpress.com/2008/07/02/about-c/</link>
		<comments>http://patryksharks321.wordpress.com/2008/07/02/about-c/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 20:02:28 +0000</pubDate>
		<dc:creator>patryksharks321</dc:creator>
				<category><![CDATA[C++]]></category>

		<guid isPermaLink="false">http://patryksharks321.wordpress.com/?p=4</guid>
		<description><![CDATA[C++ This subpage is dedicated to c++ based programming what is c++: C++ is something between a high-level programming language(like Python mainly for system applications) and a low-level programming language(Assembler for machine coding).C++ is a combination of Objected orientated programming,procedural programming and generic programming why learn C++: - It’s handy to learn C++ if you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patryksharks321.wordpress.com&amp;blog=4126749&amp;post=4&amp;subd=patryksharks321&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2 style="text-align:center;">C++</h2>
<p style="text-align:center;">This subpage is dedicated to c++ based programming</p>
<p style="text-align:left;">what is c++:</p>
<p style="text-align:left;"><strong>C++ </strong>is something between a high-level programming language(like Python mainly for system applications) and a low-level programming language(Assembler for machine coding).C++ is a combination of Objected orientated programming,procedural programming and generic programming</p>
<p style="text-align:left;">why learn C++:</p>
<ul>
<li>- It’s handy to learn C++ if you intend to take working as a programmer,web-admin,web-developer because:</li>
<li>-it’s one of the most popular languages on the world</li>
<li>-many people know it so if you have problems somebody will be able to help you almost for sure</li>
<li>-it’s got a great object orientated programming side which helps if you write longer applications</li>
<li>-there are many libraries to learn for c++ that can help you with such things as:web-development,game-making,graphics and so on</li>
</ul>
<p style="text-align:left;">greetings</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/patryksharks321.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/patryksharks321.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patryksharks321.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patryksharks321.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patryksharks321.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patryksharks321.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/patryksharks321.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/patryksharks321.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/patryksharks321.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/patryksharks321.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patryksharks321.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patryksharks321.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patryksharks321.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patryksharks321.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patryksharks321.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patryksharks321.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patryksharks321.wordpress.com&amp;blog=4126749&amp;post=4&amp;subd=patryksharks321&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://patryksharks321.wordpress.com/2008/07/02/about-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/da950dc666659fbc680b3db1cd8505e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">patryksharks321</media:title>
		</media:content>
	</item>
	</channel>
</rss>
