<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7558864400759930027</id><updated>2024-08-27T21:43:14.325-07:00</updated><title type='text'>! ! Free CSE Degree ! !</title><subtitle type='html'>I am a Computer Science Engineering major at the Ohio State University.  This quarter I am taking CSE 230, which teaches how to write programs in C++.  I will be posting my understanding of the material to provide other aspiring programmers with a learning resource similar to a college curriculum.  Since I am not a teacher, I will assume readers know the basics of programming.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://frostybrutus.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7558864400759930027/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://frostybrutus.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>kowabunga</name><uri>http://www.blogger.com/profile/06539612981339710479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7558864400759930027.post-4901350308308288520</id><published>2010-10-05T23:03:00.001-07:00</published><updated>2010-10-05T23:03:20.048-07:00</updated><title type='text'>this gif is awesome</title><content type='html'>&lt;a href=&quot;http://www.stumbleupon.com/su/8AE7dx/filesmelt.com/dl/dwi12.gif&quot;&gt;http://www.stumbleupon.com/su/8AE7dx/filesmelt.com/dl/dwi12.gif&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://frostybrutus.blogspot.com/feeds/4901350308308288520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://frostybrutus.blogspot.com/2010/10/this-gif-is-awesome.html#comment-form' title='15 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7558864400759930027/posts/default/4901350308308288520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7558864400759930027/posts/default/4901350308308288520'/><link rel='alternate' type='text/html' href='http://frostybrutus.blogspot.com/2010/10/this-gif-is-awesome.html' title='this gif is awesome'/><author><name>kowabunga</name><uri>http://www.blogger.com/profile/06539612981339710479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>15</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7558864400759930027.post-5794026131944160825</id><published>2010-10-01T07:00:00.000-07:00</published><updated>2010-10-01T08:26:10.116-07:00</updated><title type='text'>Week Two Part Two:</title><content type='html'>We spent today discussing control flow and conditional statements.&amp;nbsp; This is a huge part of programming, it allows your program to choose which code to execute based on a given expression.&amp;nbsp; The instructor reviewed if , if-else, if-else-if, and while statements.&lt;br /&gt;
&lt;br /&gt;
To begin, an if statement looks like this:&lt;br /&gt;
&lt;br /&gt;
if (boolean value)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statement...;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Let&#39;s look at the first line; the function of the keyword &quot;if&quot; is obvious.&amp;nbsp; Inside the parentheses is any expression that evaluates to a boolean value; if the expression is true the code below in the brackets will execute, if not the code within the brackets is ignored by the computer.&lt;br /&gt;
&lt;br /&gt;
Some examples of expressions that could be used in if statements:&lt;br /&gt;
(x &amp;gt; 4)&lt;br /&gt;
(age &amp;gt;=&amp;nbsp; 22)&lt;br /&gt;
(a == b)&amp;nbsp; &amp;lt;== a equals b&lt;br /&gt;
(c != d)&amp;nbsp; &amp;lt;== c doesn&#39;t equal d&lt;br /&gt;
(booleanvalue == true)&lt;br /&gt;
&lt;br /&gt;
If-else statements work the same way except if the conditions of the if statement are not met the code in brackets below the keyword else is executed.&lt;br /&gt;
&lt;br /&gt;
If-else-if statements are very similar to if-else statements except the else has its own condition.&amp;nbsp; This can be repeated any number of times and can be ended with an else or if-else. &amp;nbsp;This is very useful when you require multiple conditions leading to multiple outcomes.&lt;br /&gt;
&lt;br /&gt;
The while loop is very useful when you want a block of code to execute more than once if a condition is met. &amp;nbsp;They normally use a counter to control the number of iterations in the loop. &amp;nbsp;A counter is just a variable that starts at a given number and is increased by one every time the code in the loop is executed until it reaches a value designated to stop the loop.&lt;br /&gt;
&lt;br /&gt;
Here is a sample program using a while loop:&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
int main ()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; int count;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; cout &amp;lt;&amp;lt; &quot;How many iterations would you like?&quot; &amp;lt;&amp;lt; endl;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; cin &amp;gt;&amp;gt; count;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; while ( count &amp;gt; 0)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cout &amp;lt;&amp;lt; &quot;Hello Blogger Community&quot; &amp;lt;&amp;lt; endl;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;count = count - 1; //this can also be written count--&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; cout &amp;lt;&amp;lt; &quot;That is all.&quot; &amp;lt;&amp;lt; endl;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Notice that there is no semi-colon placed after the declaration of the while loop. &amp;nbsp;This is also the case for all variants of the if statement.&lt;br /&gt;
&lt;br /&gt;
I hope I&#39;m doing OK with this blog. &amp;nbsp;Any constructive criticism is more than welcome!</content><link rel='replies' type='application/atom+xml' href='http://frostybrutus.blogspot.com/feeds/5794026131944160825/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://frostybrutus.blogspot.com/2010/10/week-two-part-two.html#comment-form' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7558864400759930027/posts/default/5794026131944160825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7558864400759930027/posts/default/5794026131944160825'/><link rel='alternate' type='text/html' href='http://frostybrutus.blogspot.com/2010/10/week-two-part-two.html' title='Week Two Part Two:'/><author><name>kowabunga</name><uri>http://www.blogger.com/profile/06539612981339710479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7558864400759930027.post-4430542214588520787</id><published>2010-09-28T08:00:00.000-07:00</published><updated>2010-09-30T20:09:47.925-07:00</updated><title type='text'>Week Two:</title><content type='html'>Well week two&#39;s here and my instructor is just as hard to understand as last week. &amp;nbsp;I don&#39;t even know if I have an American teacher or not this quarter. &amp;nbsp;It makes me mad that the university hires these people knowing the students won&#39;t be able to understand them.&lt;br /&gt;
&lt;br /&gt;
Setting up your program can be a little boring sometimes. &amp;nbsp;There are a few lines of code that &lt;b&gt;&lt;u&gt;must&lt;/u&gt;&lt;/b&gt;&amp;nbsp;go at the beginning and end of every program you write. &amp;nbsp;We haven&#39;t learned what it means yet but with my experience I understand what it&#39;s doing.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;This goes at the beginning of every program:&amp;nbsp;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
using namespace std&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;This goes at the end of every program:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Anyway, one of the main functions of C++ is the console. &amp;nbsp;Represented by cin or cout, the commands are used to control a program&#39;s input and output. &amp;nbsp;The correct way to pronounce these words is &quot;see-in&quot; and &quot;see-out&quot;.&lt;br /&gt;
&lt;br /&gt;
In a typical program, you may see these console commands in code similar to the following:&lt;br /&gt;
&lt;br /&gt;
cout &amp;lt;&amp;lt; &quot;Enter your age.\n&quot;;&lt;br /&gt;
cin &amp;gt;&amp;gt; user_age&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
Think of cout as your monitor; when you tell the console to output something it will usually be on your monitor. &amp;nbsp;The arrows represent the flow of data, i.e. taking the string &quot;Enter your age.\n&quot; and sending it to the monitor to be displayed. &amp;nbsp;The next line takes the user input from the keyboard and stores that value in the variable &quot;user_age&quot;. &amp;nbsp;Notice the arrows are pointing the other way; think of cin as your keyboard, the arrows then point from the keyboard to the variable.&lt;br /&gt;
&lt;br /&gt;
Well there&#39;s plenty more to talk about but I have other classes to work on too so I&#39;ll be posting more from this lecture very soon.&lt;br /&gt;
&lt;br /&gt;
P.S. I&#39;ll make a program out of the examples I used.&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
using namespace std&lt;br /&gt;
&lt;br /&gt;
int main ()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; int user_age, user_bday;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; cout &amp;lt;&amp;lt; &quot;Enter your age. \n&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; cin &amp;gt;&amp;gt; user_age;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; cout &amp;lt;&amp;lt; &quot;you are &quot; &amp;lt;&amp;lt; user_age &amp;lt;&amp;lt; &quot; years old.&quot; &amp;lt;&amp;lt; endl;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
If, for example, the user inputs 20 for user_age, the output will be &quot;you are 20 years old.&quot;&lt;br /&gt;
&lt;br /&gt;
Note: &quot;\n&quot; (newline) will cause a line break and the next output will be on a new line. &amp;nbsp;It can also be replaced with the &quot;&amp;lt;&amp;lt; endl&quot; shown above.</content><link rel='replies' type='application/atom+xml' href='http://frostybrutus.blogspot.com/feeds/4430542214588520787/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://frostybrutus.blogspot.com/2010/09/week-two.html#comment-form' title='22 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7558864400759930027/posts/default/4430542214588520787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7558864400759930027/posts/default/4430542214588520787'/><link rel='alternate' type='text/html' href='http://frostybrutus.blogspot.com/2010/09/week-two.html' title='Week Two:'/><author><name>kowabunga</name><uri>http://www.blogger.com/profile/06539612981339710479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>22</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7558864400759930027.post-3484038154821938102</id><published>2010-09-28T04:08:00.000-07:00</published><updated>2010-09-28T04:08:15.996-07:00</updated><title type='text'>Country-Steak: Sauce</title><content type='html'>I&#39;ve been playing a lot of Counter-Strike: Source lately and I&#39;m so addicted it&#39;s not even funny. &amp;nbsp;I suck at it too i just can&#39;t stop. &amp;nbsp;What other games do you guys have for Steam that you would recommend? (bonus points for Valve games cause I have all of them)</content><link rel='replies' type='application/atom+xml' href='http://frostybrutus.blogspot.com/feeds/3484038154821938102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://frostybrutus.blogspot.com/2010/09/country-steak-sauce.html#comment-form' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7558864400759930027/posts/default/3484038154821938102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7558864400759930027/posts/default/3484038154821938102'/><link rel='alternate' type='text/html' href='http://frostybrutus.blogspot.com/2010/09/country-steak-sauce.html' title='Country-Steak: Sauce'/><author><name>kowabunga</name><uri>http://www.blogger.com/profile/06539612981339710479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7558864400759930027.post-962471539155904173</id><published>2010-09-28T00:51:00.000-07:00</published><updated>2010-09-28T00:51:56.735-07:00</updated><title type='text'>May the Best Tablet Win</title><content type='html'>I thought this article might be worth sharing on here. &amp;nbsp;Even though I think tablets are stupid, I like to read about them so I can tell other people how stupid they are.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://gizmodo.com/5649368/ultimate-tablet-showdown-ipad-vs-playbook-vs-galaxy-tab-vs-slate&quot;&gt;http://gizmodo.com/5649368/ultimate-tablet-showdown-ipad-vs-playbook-vs-galaxy-tab-vs-slate&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://frostybrutus.blogspot.com/feeds/962471539155904173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://frostybrutus.blogspot.com/2010/09/may-best-tablet-win.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7558864400759930027/posts/default/962471539155904173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7558864400759930027/posts/default/962471539155904173'/><link rel='alternate' type='text/html' href='http://frostybrutus.blogspot.com/2010/09/may-best-tablet-win.html' title='May the Best Tablet Win'/><author><name>kowabunga</name><uri>http://www.blogger.com/profile/06539612981339710479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7558864400759930027.post-3392146070577212389</id><published>2010-09-27T20:31:00.000-07:00</published><updated>2010-09-27T20:31:26.406-07:00</updated><title type='text'>Week One:</title><content type='html'>Well I had two lectures last week and they were pretty boring. &amp;nbsp;We&#39;ve just been going over the basics that I&#39;ve heard a million times: how data is stored, how the CPU and RAM communicate, what the compiler does. &amp;nbsp;None of it is too important and really won&#39;t affect your programs at this point. &lt;br /&gt;
&lt;br /&gt;
Basically, the only important thing that I learned is how to log on to the network allowing me to work in a UNIX Command Line environment through SSH Secure Shell. &amp;nbsp;Since you&#39;re reading this you probably aren&#39;t taking this class so you will need to find your own IDE. &amp;nbsp;Eclipse CDT isn&#39;t a bad option&amp;nbsp;&lt;a href=&quot;http://www.eclipse.org/cdt/&quot;&gt;http://www.eclipse.org/cdt/&lt;/a&gt;. &lt;br /&gt;
&lt;br /&gt;
Now that you have your IDE, you&#39;re finished with class. &amp;nbsp;Party hard this weekend :D</content><link rel='replies' type='application/atom+xml' href='http://frostybrutus.blogspot.com/feeds/3392146070577212389/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://frostybrutus.blogspot.com/2010/09/week-one.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7558864400759930027/posts/default/3392146070577212389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7558864400759930027/posts/default/3392146070577212389'/><link rel='alternate' type='text/html' href='http://frostybrutus.blogspot.com/2010/09/week-one.html' title='Week One:'/><author><name>kowabunga</name><uri>http://www.blogger.com/profile/06539612981339710479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry></feed>