<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>c &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/c/</link>
	<description>Feed of posts on WordPress.com tagged "c"</description>
	<pubDate>Mon, 23 Nov 2009 23:40:10 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Rezolvarea exercitiilor la informatica c++]]></title>
<link>http://webmateinfo.wordpress.com/2009/11/24/rezolvarea-exercitiilor-la-informatica-c/</link>
<pubDate>Mon, 23 Nov 2009 22:30:05 +0000</pubDate>
<dc:creator>webmateinfo</dc:creator>
<guid>http://webmateinfo.wordpress.com/2009/11/24/rezolvarea-exercitiilor-la-informatica-c/</guid>
<description><![CDATA[Se citesc de la tastatura trei numere intregi L,l,h, reprezentand laturile unui paralelipiped dreptu]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Se citesc de la tastatura trei numere intregi L,l,h, reprezentand laturile unui paralelipiped dreptunghic. Scrieti in limbajul de programare studiat (Pascal sau C/C++) un program care sa calculeze aria si volumul paralelipipedului.   </p>
<p>    #include &#60; iostream.h &#62;<br />
       #include &#60; conio.h &#62;<br />
       void main()<br />
       {<br />
       int L,l,h,v,A;<br />
       clrscr();<br />
       cout&#60;&#60;&#8221;Lungimea=&#8221; ; cin&#62;&#62;L;<br />
       cout&#60;&#60;&#8221;Latimea=&#8221;; cin&#62;&#62;l;<br />
       cout&#60;&#60;&#8221;Inaltimea=&#8221;; cin&#62;&#62;h;<br />
       v=L*l*h;<br />
       A=2*(L*l+l*h+L*h);<br />
       cout&#60;&#60;&#8221;Volumul paralelipipedului este&#8221;&#60;&#60;&#8221; &#8220;&#60;&#60;v&#60;&#60;endl;<br />
       cout&#60;&#60;&#8221;Aria paralelipipedului   este&#8221;&#60;&#60;&#8221; &#8220;&#60;&#60;A;<br />
       getch();<br />
       }</p>
<p>&#160;</p>
<p>Notiunile teoretice, definitii ,formule pe <a href="http://www.webmateinfo.com">webmateinfo</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Problema rezolvata C++]]></title>
<link>http://webmateinfo.wordpress.com/2009/11/24/problema-rezolvata-c/</link>
<pubDate>Mon, 23 Nov 2009 22:17:10 +0000</pubDate>
<dc:creator>webmateinfo</dc:creator>
<guid>http://webmateinfo.wordpress.com/2009/11/24/problema-rezolvata-c/</guid>
<description><![CDATA[Enuntul problemei ar fi urmatorul: Scrieti in limbajul de programare studiat (Pascal sau C/C++) un p]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Enuntul problemei ar fi urmatorul:<br />
Scrieti in limbajul de programare studiat (Pascal sau C/C++) un program care sa rezolve urmatorul eveniment:<br />
Intr o urna sunt n bile numerotate cu cifre de la 1 la n . Numarul n se cititeste de la tastatura(intrarea standard).Se v -a efectua n-1 extrageri de bile fara revenire( bilele extrase nu se mai pun inapoi in urna). Sa se afle ce numar are bila care a ramas in urna.<br />
Ex. n=7<br />
Se extrag bilele cu numarul : 1,7,4,6,3,2<br />
Bila ramasa in urna este: 5</p>
<p>O posibila rezolvare :<br />
Sa ne imaginam ca urana poate fi un fisier &#8220;urna.in&#8221; . Bilele extrase le punem in fisierul &#8220;urna.out&#8221;.Aceste fisiere trebuie sa se afle in directorul radacina la Editorului(compilatorului).<br />
#include &#60; fstream.h &#62;<br />
#include &#60; conio.h&#62;<br />
#include &#60; math.h &#62;</p>
<p>int v[20],nr,n;<br />
void creare()<br />
{<br />
ofstream f(&#8220;urna.in&#8221;);<br />
int k=1,i;<br />
cout&#60;&#62;n;<br />
cout&#60;&#60;endl;<br />
cout&#60;&#60;&#8221;Introdu bilele in urna: &#8220;;<br />
while(k&#62;nr;<br />
f&#60;&#60;nr&#60;&#60;&#8221; &#8220;;<br />
v[k]=nr;<br />
k++;<br />
}<br />
f.close();<br />
ifstream g(&#8220;urna.in&#8221;);<br />
cout&#60;&#60;&#8221;Numerotarea bilelor din urna: &#8220;;<br />
for(i=1;i&#62;nr;<br />
cout&#60;&#60;nr&#60;&#60;&#8221; &#8220;;<br />
}<br />
cout&#60;&#60;endl;<br />
g.close();<br />
}</p>
<p>void extragere()<br />
{<br />
int b,k=1,i;<br />
ofstream h(&#8220;urna.out&#8221;);<br />
cout&#60;&#60;&#8221;Extragem &#8220;&#60;&#60;(n-1)&#60;&#60;&#8221; bile din urna: &#8220;;<br />
while(k&#62;b;<br />
if(b0)<br />
{<br />
h&#60;&#60;b&#60;&#60;&#8221; &#8220;; k++;<br />
}<br />
else{<br />
cout&#60;&#60;&#8221;Nu exista in urma bila numerotata cu acest numar!!Extrage alta bila!&#8221;;<br />
cout&#60;&#60;endl;<br />
}<br />
}<br />
h.close();<br />
ifstream d(&#8220;urna.out&#8221;);<br />
cout&#60;&#60;&#8221;Bilele extrase din urna sunt: &#8220;;<br />
for(i=1;i&#62;b;<br />
if(v[b])<br />
{<br />
v[b]=v[b]-b;</p>
<p>}<br />
cout&#60;&#60;b&#60;&#60;&#8221; &#8220;;}<br />
cout&#60;&#60;endl;</p>
<p>d.close();</p>
<p>}<br />
void bilaomisa ()<br />
{<br />
ifstream d(&#8220;urna.out&#8221;);<br />
int i;<br />
for(i=1;i&#60;=n;i++) {<br />
if(v[i])<br />
cout&#60;&#60;&#8221;bila omisa este &#8220;&#60;&#60;v[i];<br />
}<br />
cout&#60;&#60;endl; d.close();<br />
}</p>
<p>void main()<br />
{<br />
ifstream f(&#8220;date.in&#8221;);<br />
clrscr();<br />
creare();<br />
extragere();<br />
bilaomisa();<br />
getch();<br />
}</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Barrette écologique - suivi]]></title>
<link>http://microclub.wordpress.com/2009/11/23/barrette-ecologique-suivi/</link>
<pubDate>Mon, 23 Nov 2009 22:11:16 +0000</pubDate>
<dc:creator>ymasur</dc:creator>
<guid>http://microclub.wordpress.com/2009/11/23/barrette-ecologique-suivi/</guid>
<description><![CDATA[Comme ce projet avance par étapes, je me propose d&#8217;en relater les avancées ici. Eh oui, c]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Comme ce projet avance par étapes, je me propose d&#8217;en relater les avancées ici. Eh oui, c&#8217;est finalement assez complexe, et ça mérite quelques éclaircissements. Il ya :</p>
<ul>
<li>Le hard</li>
<li>le logiciel bas niveau</li>
<li>les processus LAN</li>
<li>du temps réel</li>
<li>l&#8217;interface WEB</li>
<li>de la compression</li>
<li>des stockages et transmission de données</li>
</ul>
<p>Actuellement (novembre 2009),  le hard est posé dans les grandes lignes; mais pas complètement arrêté. La clock RTC sera matérialisé par un DS1307, une pile, un quartz. La commande de triacs sera fortement inspirée d&#8217;une interface de Franic (merci Laurent!).</p>
<p>Les couches logicielles assez bien définies; toutefois, c&#8217;est la partie qui risque de subir les plus grand changements &#8211; même si le hard est terminé! Chacun pour</p>
<div id="attachment_256" class="wp-caption alignleft" style="width: 310px"><a href="http://microclub.wordpress.com/files/2009/11/ck_datas.jpg"><img class="size-medium wp-image-256" title="ck_datas" src="http://microclub.wordpress.com/files/2009/11/ck_datas.jpg?w=300" alt="clock et datas" width="300" height="225" /></a><p class="wp-caption-text">clock et datas</p></div>
<p>ra peaufinner son interface WEB. Pour cela, il faudra une bibliothèque bien établie de tags, et de modules en Javascript. Et de modules en C, bien sûr.</p>
<p>Le tout est téléchargeable ici: http://yves.masur.microclub.ch/articles/</p>
<p>Ce n&#8217;est pas vraiment un article, mais il y a: le code source, les pages WEB, et deux documents au format pdf. &#8220;MXBOARD_decouverte&#8221; présente les différentes facette de cette plateforme, alors que &#8220;barette&#8221; est le cahier des charges &#8211; qui se transforme en cahier de réalisation petit à petit.</p>
<p>Yves Masur</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[kafkassoft.com]]></title>
<link>http://mfarsakoglu.wordpress.com/2009/11/23/kafkassoft-com/</link>
<pubDate>Mon, 23 Nov 2009 21:39:58 +0000</pubDate>
<dc:creator>mertf</dc:creator>
<guid>http://mfarsakoglu.wordpress.com/2009/11/23/kafkassoft-com/</guid>
<description><![CDATA[http://www.kafkassoft.com/ http://www.kafkassoft.com/ http://www.kafkassoft.com/ http://www.kafkasso]]></description>
<content:encoded><![CDATA[http://www.kafkassoft.com/ http://www.kafkassoft.com/ http://www.kafkassoft.com/ http://www.kafkasso]]></content:encoded>
</item>
<item>
<title><![CDATA[Flyktingfamiljerna ska inte splittras]]></title>
<link>http://soilander.wordpress.com/2009/11/23/flyktingfamiljerna-ska-inte-splittras/</link>
<pubDate>Mon, 23 Nov 2009 20:58:57 +0000</pubDate>
<dc:creator>Peter Soilander</dc:creator>
<guid>http://soilander.wordpress.com/2009/11/23/flyktingfamiljerna-ska-inte-splittras/</guid>
<description><![CDATA[Lars Gustafsson, (KD) migrationspolitisk talesperson , skriver att barnfamiljer integreras bäst om d]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Lars Gustafsson, (KD) migrationspolitisk talesperson , skriver att barnfamiljer integreras bäst om de får vara med sina barn på samma plats som de bor. Så har det inte alltid varit, utan kravet har varit att föräldrarna ska kunna försörja sina barn. Gustafsson skriver i <a href="http://www2.unt.se/pages/1,1826,MC=2-AV_ID=985451,00.html">UNT</a>:<br />
<blockquote>Genom att undanta barnfamiljer från försörjningskravet har vi sett till att inga barn drabbas av förslaget och att familjer även fortsättningsvis ska ha möjlighet att återförenas i Sverige.</p></blockquote>
<p>Nu finns det andra problem. </p>
<p><!--more--><br />
Ett gäng centerpartister skriver också i <a href="http://www2.unt.se/pages/1,1826,MC=2-AV_ID=981125,00.html">UNT</a>:<br />
<blockquote>Därför är det oerhört viktigt att invandrare lotsas in på arbetsmarknaden under sin första tid i Sverige. I dag tar det i snitt sju år för en invandrare med uppehållstillstånd att få ett arbete. </p></blockquote>
<p>Därför har de kommit med förslaget om instegsjobb. Arbetsförmedlingen <a href="http://www.arbetsformedlingen.se/go.aspx?C=1000004">skriver</a>:<br />
<blockquote>Alla arbetsgivare som anställer en nyanländ invandrare kan få 75 procent av lönen i bidrag, dock max 750 kronor per dag. </p></blockquote>
<p>Det känns skönt att Alliansen gör något åt flyktingproblematiken. Det ska bli trevligt att få se resultatet.</p>
<p>I Kanada har de ett särskilt <a href="http://www.cic.gc.ca/english/refugees/sponsor/index.asp">sponsorsystem</a> för nyanlända flyktingar. Ett helt annat system. </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Stop ?! Background XD]]></title>
<link>http://khalid7.wordpress.com/2009/11/23/stop-background-xd/</link>
<pubDate>Mon, 23 Nov 2009 20:38:37 +0000</pubDate>
<dc:creator>Alomran</dc:creator>
<guid>http://khalid7.wordpress.com/2009/11/23/stop-background-xd/</guid>
<description><![CDATA[OK &#8230; Now we have received a looooot of suggestions on how we should continue this game design.]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>OK &#8230; Now we have received a looooot of suggestions on how we should continue this game design.</p>
<p>Some of the most important ones include us stopping the implementation we are doing with DirectX and the DigiPen university documents and start working with real game engines and frameworks..</p>
<p>including using slimDirectX or XnA for Microsoft. Maybe even OpenGL &#38; C++ for playstation and wii.</p>
<p>But I think we will decide how to continue because each way has its advantages over the others</p>
<p>like if we continue with the normal DirectX then we are mostly learning the language C#, which is a good idea because since we are mostly thinking of designing for the Xbox 360 &#38; it is implemented using visual studios, it will provide us with a strong programming background. Although using XnA immediately will make us work on &#8220;VIDEO GAME DESIGN&#8221;. We still have other options, but we will talk about our path later <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span style="color:#0000ff;"><strong>BACKGROUND</strong></span></p>
<p><span style="color:#000000;">Now, in case we stick to what we are already working on I designed our simple background for the game <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></p>
<p><span style="color:#000000;">It&#8217;s still not in the program itself, but its ready whenever we want to use it <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></p>
<p><span style="color:#000000;"><a href="http://khalid7.wordpress.com/files/2009/11/background.jpg"><img class="alignleft size-medium wp-image-70" title="Background" src="http://khalid7.wordpress.com/files/2009/11/background.jpg?w=300" alt="" width="300" height="300" /></a><br />
</span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[C Pointer Operators Explained]]></title>
<link>http://mmsmatt.wordpress.com/2009/11/23/c-pointer-operators-explained/</link>
<pubDate>Mon, 23 Nov 2009 20:18:37 +0000</pubDate>
<dc:creator>mmsmatt</dc:creator>
<guid>http://mmsmatt.wordpress.com/2009/11/23/c-pointer-operators-explained/</guid>
<description><![CDATA[To help myself get a handle on pointer operators, I wrote an example program using * and &amp; on di]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>To help myself get a handle on pointer operators, I wrote an example program using <code>*</code> and <code>&#38;</code> on different variables.</p>
<p><code>*</code> is the unary <i>dereference</i> operator, it returns the value stored at the memory address described by its operand.</p>
<p><code>&#38;</code> is the unary <i>address of</i> operator, it returns the memory address at which its operand is stored.</p>
<p><a href="http://mattsrepo.googlecode.com/svn-history/r22/trunk/c/pointers.c">Grab this C file</a>, compile it, and watch what happens with different applications of <code>*</code> and <code>&#38;</code>. Here&#8217;s the source: </p>
<pre class="brush: cpp;">
int main(void)
{
    int value;
    int *ptr;
    int **ptr2;

    printf(&#34;\nWe have:\n\nint value;\nint *ptr;\nint **ptr2;\n\n&#34;);
    printf(&#34;Let's assign our variables:\n\n&#34;);

    printf(&#34;value = 0xFF\nptr = &#38;value;\n\n&#34;);
    value = 0xFF;
    ptr = &#38;value;

    printf(&#34;Now let's observe * and &#38; operators:\n\n&#34;);
    printf(&#34;value   is 0x%X\n&#34;, value);
    printf(&#34;*value  is illegal!!\n&#34;);
    printf(&#34;&#38;value  is 0x%p\n\n&#34;, &#38;value);

    printf(&#34;ptr     is 0x%p\n&#34;, ptr);
    printf(&#34;*ptr    is 0x%X\n&#34;,   *ptr);
    printf(&#34;&#38;ptr    is 0x%p\n\n&#34;, &#38;ptr);

    ptr2 = &#38;ptr;

    printf(&#34;Now, go crazy:\n\n&#34;);
    printf(&#34;ptr2 = &#38;ptr;\n\n&#34;);

    printf(&#34;ptr2    is 0x%p\n&#34;, ptr2);
    printf(&#34;*ptr2   is 0x%p\n&#34;, *ptr2);
    printf(&#34;**ptr2  is 0x%X\n&#34;, **ptr2);
    printf(&#34;&#38;ptr2   is 0x%p\n&#34;, &#38;ptr2);

    return 0;

}
</pre>
<p>Notice how <code>ptr</code>&#8217;s value is equal to the address of <code>value</code>. But <code>ptr</code> can be treated like any other variable &#8211; it has its own address in memory. <code>ptr2</code>&#8217;s value is equal to the address of <code>ptr</code>. That&#8217;s why <code>**ptr2</code> yields the original value <code>0xFF</code>. We dereference <code>ptr2</code> to yield the value stored at <code>ptr</code>, which is the address of <code>value</code>. Then we dereference that to get <code>0xFF</code>.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Leonardo Cuéllar]]></title>
<link>http://calciatoricapelloni.wordpress.com/2009/11/23/leonardo-cuellar/</link>
<pubDate>Mon, 23 Nov 2009 17:58:17 +0000</pubDate>
<dc:creator>Oyasuminasai</dc:creator>
<guid>http://calciatoricapelloni.wordpress.com/2009/11/23/leonardo-cuellar/</guid>
<description><![CDATA[Leonardo Cuéllar Rivera (Città del Messico, Messico, 14 gennaio 1954) con la seconda maglia della na]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://calciatoricapelloni.wordpress.com/files/2009/11/cuellar-leonardo.jpg"><img class="aligncenter size-full wp-image-199" title="Cuellar Leonardo" src="http://calciatoricapelloni.wordpress.com/files/2009/11/cuellar-leonardo.jpg" alt="" width="489" height="700" /></a></p>
<p style="text-align:justify;"><strong>Leonardo Cuéllar Rivera</strong> (Città del Messico, Messico, 14 gennaio 1954) con la seconda maglia della nazionale messicana.</p>
<p style="text-align:justify;">Estroso centrocampista che non passava di certo innosservato, Cuéllar ha giocato sette anni (1972-1979) nei Pumas dell&#8217;Università di Città del Messico, contribuendo alla conquista del primo campionato vinto da questa squadra (1977, in campo anche il mitico Bora Milutinovic).<br />
Successivamente ha giocato cinque anni negli Stati Uniti, nei San Diego Sockers e nei San José Earthquakes, giocando anche nelle rispettive squadre indoor.<br />
Con la nazionale messicana, una partecipazione alle olimpiadi del 1972 (con un gol segnato nell&#8217;1-1 con la Germania Ovest) e i mondiali del 1978 in Argentina (3 partite e 3 sconfitta, di cui un 6-0 ancora contro la Germania Ovest)</p>
<p style="text-align:justify;">Cuéllar oggi, irriconoscibile senza capelli, allena la nazionale femminile del Messico, con scarso successo.</p>
<p><a href="http://calciatoricapelloni.wordpress.com/files/2009/11/cuellar-leonardo-2.jpg"><img class="aligncenter size-full wp-image-200" title="Cuellar Leonardo 2" src="http://calciatoricapelloni.wordpress.com/files/2009/11/cuellar-leonardo-2.jpg" alt="" width="359" height="600" /></a><em></em></p>
<p style="text-align:center;"><em>Ancora una foto di Cuéllar, ai tempi d&#8217;oro dei Pumas.</em></p>
<p>Wikipedia (inglese): <a href="http://en.wikipedia.org/wiki/Leonardo_Cu%C3%A9llar" target="_blank">Leonardo Cuéllar</a></p>
<p><span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/C32CnrOeWTQ&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' /><param name='allowfullscreen' value='true' /><param name='wmode' value='transparent' /><embed src='http://www.youtube.com/v/C32CnrOeWTQ&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='350' wmode='transparent'></embed></object></span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Mastermind Client - Create Board Dynamically]]></title>
<link>http://rhollstein09.wordpress.com/2009/11/23/mastermind-client-create-board-dynamically/</link>
<pubDate>Mon, 23 Nov 2009 17:48:32 +0000</pubDate>
<dc:creator>Robin</dc:creator>
<guid>http://rhollstein09.wordpress.com/2009/11/23/mastermind-client-create-board-dynamically/</guid>
<description><![CDATA[I have created the board with all its associated objects/controls dynamically, and they are all posi]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I have created the board with all its associated objects/controls dynamically, and they are all positioned correctly when the mobile app comes up. The objects that I created are:</p>
<ul>
<li>panel object for board</li>
<li>panel object for row</li>
<li>panel object for results</li>
<li>button objects for result buttons (4) that are added to results panel</li>
<li>results panel added to row panel</li>
<li>button objects for guess buttons (4) that are added to row panel</li>
<li>row panels (8) added to board panel</li>
</ul>
<p><b>Processing</b></p>
<ol>
<li>all buttons are disabled to start</li>
<li>backcolor for row panel (remaining turns) and results panel (remaining turns) are highlighted, and guess buttons enabled to put focus on row where user will select guess colors &#8211; NOTE: this changes whenever the user takes a guess and the remaining turns are decremented by one</li>
<li>clicking on guess button changes the color (like Dr. B&#8217;s example) &#8211; however, I haven&#8217;t gotten this to work yet</li>
</ol>
<p>I still have some problems to work out, but I have gotten the board to appear.  Recognizing the guess button clicks should be similar to the lights game.</p>
<p>At least I have until November 30th to figure it all out!  Maybe this algorithm will help someone, or maybe there is a better way to do it!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[TJU 2520.   Quicksum ]]></title>
<link>http://itsevening.wordpress.com/2009/11/23/tju-2520-quicksum/</link>
<pubDate>Mon, 23 Nov 2009 17:17:50 +0000</pubDate>
<dc:creator>whoami</dc:creator>
<guid>http://itsevening.wordpress.com/2009/11/23/tju-2520-quicksum/</guid>
<description><![CDATA[TJU 2520. Quicksum --AC-- #include&lt;stdio.h&gt; #include&lt;stdlib.h&gt; #include&lt;string.h&gt; ]]></description>
<content:encoded><![CDATA[TJU 2520. Quicksum --AC-- #include&lt;stdio.h&gt; #include&lt;stdlib.h&gt; #include&lt;string.h&gt; ]]></content:encoded>
</item>
<item>
<title><![CDATA[Klasser för grafik och styrning]]></title>
<link>http://joabo448.wordpress.com/2009/11/23/klasser-for-grafik-och-styrning/</link>
<pubDate>Mon, 23 Nov 2009 16:07:06 +0000</pubDate>
<dc:creator>joabo448</dc:creator>
<guid>http://joabo448.wordpress.com/2009/11/23/klasser-for-grafik-och-styrning/</guid>
<description><![CDATA[Idag har vi spenderat fyra timmar på att skriva klasser för grafik och styrning. Styrning är ännu ej]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Idag har vi spenderat fyra timmar på att skriva klasser för grafik och styrning. Styrning är ännu ej klar, men på god väg.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[TJU 2056.   Series Determination ]]></title>
<link>http://itsevening.wordpress.com/2009/11/23/tju-2056-series-determination/</link>
<pubDate>Mon, 23 Nov 2009 15:38:12 +0000</pubDate>
<dc:creator>whoami</dc:creator>
<guid>http://itsevening.wordpress.com/2009/11/23/tju-2056-series-determination/</guid>
<description><![CDATA[TJU 2056. Series Determination Keep going --AC-- #include&lt;stdio.h&gt; #include&lt;string.h&gt; #i]]></description>
<content:encoded><![CDATA[TJU 2056. Series Determination Keep going --AC-- #include&lt;stdio.h&gt; #include&lt;string.h&gt; #i]]></content:encoded>
</item>
<item>
<title><![CDATA[C++.How.to.Program.Fifth.Edition]]></title>
<link>http://janesheeba.wordpress.com/2009/11/23/c-how-to-program-fifth-edition/</link>
<pubDate>Mon, 23 Nov 2009 15:17:14 +0000</pubDate>
<dc:creator>janesheeba</dc:creator>
<guid>http://janesheeba.wordpress.com/2009/11/23/c-how-to-program-fifth-edition/</guid>
<description><![CDATA[&nbsp; Download &nbsp; &nbsp; http://hotfile.com/dl/18351961/a19f601/C_How_to_Program_Fifth_Edition.]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="aligncenter" src="http://i48.tinypic.com/20tknch.jpg" alt="" width="765" height="548" /></p>
<p>&#160;</p>
<p>Download</p>
<p>&#160;</p>
<p>&#160;</p>
<p>http://hotfile.com/dl/18351961/a19f601/C_How_to_Program_Fifth_Edition.chm.html</p>
<p>http://kewlshare.com/dl/c2296b134b1f/C___How_to_Program__Fifth_Edition.chm.html</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Hiring- C++ Developer - London - Contract Role - Referral -500 Euros]]></title>
<link>http://avanceservices.wordpress.com/2009/11/23/hiring-c-developer-london-contract-role-referral-500-euros/</link>
<pubDate>Mon, 23 Nov 2009 15:09:03 +0000</pubDate>
<dc:creator>avanceservices</dc:creator>
<guid>http://avanceservices.wordpress.com/2009/11/23/hiring-c-developer-london-contract-role-referral-500-euros/</guid>
<description><![CDATA[We are looking for C++ Developers for one of our clients, a Leading listed IT Services company. This]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>We are looking for <strong>C++ Developers </strong>for one of our clients, a Leading  listed IT Services company. This is a contract role with the company. </p>
<p>Write to <strong>rizwan.syed [at] avanceservices [dot] com </strong>for more details</p>
<p>Role : C++ Developer<br />
Location : London<br />
Terms : Competitive<br />
Role: Contract </p>
<p><strong>Referral Reward – 500 Euros</strong></p>
<p>There is a referral reward of 500 Euros on a success fee basis for this role i.e. we will pay this reward if the person you refer is selected for this role, joins this position and meets some basic client obligations in the first 3 months</p>
<p>We will reply to you within 2 business days for any candidates that you recommend and whom we have already spoken to in the past for this role. This referral reward offer is valid only till December 5th -2009</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Tools for multicore development: a report from a private Intel event in London]]></title>
<link>http://softtalkblog.wordpress.com/2009/11/23/tools-for-multicore-development-a-report-from-a-private-intel-event-in-london/</link>
<pubDate>Mon, 23 Nov 2009 15:01:06 +0000</pubDate>
<dc:creator>softtalkblog</dc:creator>
<guid>http://softtalkblog.wordpress.com/2009/11/23/tools-for-multicore-development-a-report-from-a-private-intel-event-in-london/</guid>
<description><![CDATA[Last week, I attended an exclusive event in London for members of the Intel Software Network. As you]]></description>
<content:encoded><![CDATA[Last week, I attended an exclusive event in London for members of the Intel Software Network. As you]]></content:encoded>
</item>
<item>
<title><![CDATA[C Guide - Comments]]></title>
<link>http://computersciencesource.wordpress.com/2009/11/23/c-guide-comments/</link>
<pubDate>Mon, 23 Nov 2009 14:41:15 +0000</pubDate>
<dc:creator>Badgerati</dc:creator>
<guid>http://computersciencesource.wordpress.com/2009/11/23/c-guide-comments/</guid>
<description><![CDATA[Comments are very important in programming. Could you imagine what you would do if you wrote a progr]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Comments are very important in programming. Could you imagine what you would do if you wrote a program that was hundreds of lines long, and you forgot what a certain function did? or what that variable was for?!</p>
<p> <!--more--><br />
<h2>&#160;</h2>
<h2>What is a Comment?</h2>
<p>SO, what is a comment I hear you cry? A comment is a line (or lines) of code – text to be honest – that will <strong>not</strong> be read by the compiler when you run the code. So you could comment out a whole function, and the compiler would act as if that function didn’t even exist at all! (poor function <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  )</p>
<p>&#160;</p>
<h2>Comments – The Ways</h2>
<p>In C there are two ways – to my knowledge… – of creating <em>comments</em> in a C program. The first way is this:</p>
<p><a href="http://computersciencesource.files.wordpress.com/2009/11/comments.png"><img title="Comments" style="display:inline;border-width:0;" height="17" alt="Comments" src="http://computersciencesource.files.wordpress.com/2009/11/comments_thumb.png?w=176&#038;h=17" width="176" border="0" /></a> </p>
<p>So here, if you place ‘//’ at the beginning of a line in C, then the rest of the line we become a comment!</p>
<p>&#160;</p>
<p>The second way to create a comment is like shown below:</p>
<p><a href="http://computersciencesource.files.wordpress.com/2009/11/comments1.png"><img title="Comments" style="display:inline;border-width:0;" height="34" alt="Comments" src="http://computersciencesource.files.wordpress.com/2009/11/comments_thumb1.png?w=176&#038;h=34" width="176" border="0" /></a> </p>
<p>Here, if you place ‘/*’ at the beginning of a line, and ‘*/’ at the end of the line you want to be a comment, then that whole line will turn into a comment.</p>
<p>Even better, if you do what the image shows above, you can place ‘/*’ on one line and ‘*/’ on another line, and you can comment out 2+ lines at once! This is miles better than comments out 100 lines by typing 100 ‘//’ <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />     <br />All you need is an ‘/*’ on line 1, and an ‘*/’ on line 100, and wallah!</p>
<p>&#160;</p>
<p>Next is Variables, these are vital if you really want to do some neat stuff with your code <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[C Guide - Variables]]></title>
<link>http://computersciencesource.wordpress.com/2009/11/23/c-guide-variables/</link>
<pubDate>Mon, 23 Nov 2009 14:40:43 +0000</pubDate>
<dc:creator>Badgerati</dc:creator>
<guid>http://computersciencesource.wordpress.com/2009/11/23/c-guide-variables/</guid>
<description><![CDATA[We’ve all done Maths in high school, so you should know what a variable is? Say you had the formula:]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>We’ve all done Maths in high school, so you should know what a variable is? Say you had the formula:</p>
<p>2x+3 = 11</p>
<p> <!--more-->
<p>Then here, ‘x’ is the variable. However, in a program, ‘x’ is not just one value, ‘x’ can be any value you want to to be – so an integer or a string or just a single character!</p>
<p>&#160;</p>
<h2>Initialization</h2>
<p>In C there aren’t that many types of variables, here is a select few that are very commonly used:</p>
<p><a href="http://computersciencesource.files.wordpress.com/2009/11/variables.png"><img title="Variables" style="display:inline;border-width:0;" height="61" alt="Variables" src="http://computersciencesource.files.wordpress.com/2009/11/variables_thumb.png?w=134&#038;h=61" width="134" border="0" /></a> </p>
<p>What is shown above is also how we initialize a variable in C. if you want a variable, say ‘aVariable’, and you want ‘aVariable’ you be an integer value, then you would initialize ‘aVariable’ like:</p>
<p><a href="http://computersciencesource.files.wordpress.com/2009/11/assigningvars.png"><img title="AssigningVars" style="display:inline;border-width:0;" height="16" alt="AssigningVars" src="http://computersciencesource.files.wordpress.com/2009/11/assigningvars_thumb.png?w=176&#038;h=16" width="176" border="0" /></a>&#160; </p>
<p>You have probably already noticed the semi-colons again. Remember what i said earlier about them signifying the end of things, well this time they’re here to signify the end of an initialization.</p>
<p>&#160;</p>
<h2>Printing Variables</h2>
<p>Just like we printed the words “Hello World” earlier, we can also print variables in must the same way!</p>
<p><a href="http://computersciencesource.files.wordpress.com/2009/11/printingvariables.png"><img title="PrintingVariables" style="display:inline;border-width:0;" height="140" alt="PrintingVariables" src="http://computersciencesource.files.wordpress.com/2009/11/printingvariables_thumb.png?w=276&#038;h=140" width="276" border="0" /></a> </p>
<p>&#160;</p>
<p>Most of that code above you should recognise. However, take a look at line 5. Notice anything?</p>
<p><a href="http://computersciencesource.files.wordpress.com/2009/11/printingvariables1.png"><img title="PrintingVariables" style="display:inline;border-width:0;" height="23" alt="PrintingVariables" src="http://computersciencesource.files.wordpress.com/2009/11/printingvariables_thumb1.png?w=288&#038;h=23" width="288" border="0" /></a> </p>
<p>OK, well you may have noticed that we have initialized a variable called ‘aVariable’ and declared it as an integer; but what will be new to you it the ‘=10’ at the end. This is an assignment – so yes we need the ‘;’ again <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  – This time, when we initialize the variable, we automatically give it the value ‘10’. </p>
<p><a href="http://computersciencesource.files.wordpress.com/2009/11/printingvariables2.png"><img title="PrintingVariables" style="display:inline;border-width:0;" height="19" alt="PrintingVariables" src="http://computersciencesource.files.wordpress.com/2009/11/printingvariables_thumb2.png?w=332&#038;h=19" width="332" border="0" /></a> </p>
<p>This is the line that we’re interested in: line 6. At first glance this may seem fairly complicated, but it isn’t really – honest! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The first part <em>printf(“aVariable = “) </em>should be obvious, we’re just printing the word ‘avariable’ to the screen. However, also with in that string we have the letters ‘%d’, this signifies the fact that we wish to include an integer (or a double to be more accurate) into the string to be printed.</p>
<p>When we compile the code, the compiler see’s this, and will expect to see the variable that we wish to print come after the string, both being separated via a comma. If all goes well, we should get the output:</p>
<p><em>aVariable = 10</em></p>
<p>&#160;</p>
<h2>Initializing and Assigning the other variable types</h2>
<p><a href="http://computersciencesource.files.wordpress.com/2009/11/assigningvars1.png"><img title="AssigningVars" style="display:inline;border-width:0;" height="58" alt="AssigningVars" src="http://computersciencesource.files.wordpress.com/2009/11/assigningvars_thumb1.png?w=176&#038;h=58" width="176" border="0" /></a> </p>
<p>Like the initialization of an integer variable, <em>char’</em>s and <em>float’</em>s are done very much the same way. Sadly, C doesn’t have a type for <em>string</em>, so you have to use something a little more advanced – but not hard <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  -</p>
<p>&#160;</p>
<p>Next we’ll see how to get a users input – the simple way for now</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[C Guide &ndash; Hello World!]]></title>
<link>http://computersciencesource.wordpress.com/2009/11/23/c-guide-hello-world/</link>
<pubDate>Mon, 23 Nov 2009 14:39:50 +0000</pubDate>
<dc:creator>Badgerati</dc:creator>
<guid>http://computersciencesource.wordpress.com/2009/11/23/c-guide-hello-world/</guid>
<description><![CDATA[I was sat here, in my room – fairly bored to be honest… – and i started thinking, wouldn’t it be coo]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I was sat here, in my room – fairly bored to be honest… <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  – and i started thinking, wouldn’t it be cool to write a C guide to help people! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>This is my first time <strong>ever</strong> to attempt something like this, so it could turn out reeally bad, or really well – who knows!</p>
<p> <!--more-->
<p>&#160;</p>
<h1>Introduction</h1>
<p>C as you should hopefully know is a programming language, and until C++ etc came out, it was on of the most powerful languages out there because of one feature – pointers.</p>
<p>Unlike Java and C++, C is a procedural language and not an Object-Oriented one.</p>
<p>&#160;</p>
<h2>Hello World</h2>
<p>So then, enough babble, lets have a look at a working program! And as usual i thought i go with tradition and show you the oh-so-famous “Hello World” program! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://computersciencesource.files.wordpress.com/2009/11/helloworld.png"><img title="HelloWorld" style="display:inline;border-width:0;" height="121" alt="HelloWorld" src="http://computersciencesource.files.wordpress.com/2009/11/helloworld_thumb.png?w=208&#038;h=121" width="208" border="0" /></a> </p>
<p>If you’ve used C++ before, this will look very familiar, except for the fact that ‘#include &#60;stdio.h&#62;’ is in fact ‘#include &#60;iostream&#62;’ in C++.</p>
<p><a href="http://computersciencesource.files.wordpress.com/2009/11/helloworld1.png"><img title="HelloWorld" style="display:inline;border-width:0;" height="18" alt="HelloWorld" src="http://computersciencesource.files.wordpress.com/2009/11/helloworld_thumb1.png?w=208&#038;h=18" width="208" border="0" /></a> </p>
<p>So, lets take a look at what’s happening. Well, to be fair it’s actually very simple. ‘<em>#include &#60;stdio.h&#62;</em>’<em> </em>is a command that will include the <em>standard I/O</em> library of functions for C, otherwise we couldn’t print things to the screen or get the users input!</p>
<p><a href="http://computersciencesource.files.wordpress.com/2009/11/helloworld2.png"><img title="HelloWorld" style="display:inline;border-width:0;" height="17" alt="HelloWorld" src="http://computersciencesource.files.wordpress.com/2009/11/helloworld_thumb2.png?w=208&#038;h=17" width="208" border="0" /></a> </p>
<p><em>int main() </em>is the name that <strong>must</strong> be used for the <em>main</em> function of a C program. It is the function that will be automatically used when your program is compiled and run.</p>
<p><a href="http://computersciencesource.files.wordpress.com/2009/11/helloworld3.png"><img title="HelloWorld" style="display:inline;border-width:0;" height="18" alt="HelloWorld" src="http://computersciencesource.files.wordpress.com/2009/11/helloworld_thumb3.png?w=208&#038;h=18" width="208" border="0" /></a> </p>
<p>The <em>{ and }</em> tags are important. They signify the opening and closing of a function. So <em>{</em> starts the opening of the <em>main</em> function, and <em>}</em> signifies the end of the <em>main</em> function.</p>
<p><a href="http://computersciencesource.files.wordpress.com/2009/11/helloworld4.png"><img title="HelloWorld" style="display:inline;border-width:0;" height="19" alt="HelloWorld" src="http://computersciencesource.files.wordpress.com/2009/11/helloworld_thumb4.png?w=208&#038;h=19" width="208" border="0" /></a> </p>
<p><em>printf() </em>is one of the functions that is from the <em>&#60;stdio.h&#62;</em> library we included, and is used to print to the screen what ever is inside the two brackets – in this case “<em>Hello World!”</em></p>
<p><a href="http://computersciencesource.files.wordpress.com/2009/11/helloworld5.png"><img title="HelloWorld" style="display:inline;border-width:0;" height="17" alt="HelloWorld" src="http://computersciencesource.files.wordpress.com/2009/11/helloworld_thumb5.png?w=208&#038;h=17" width="208" border="0" /></a> </p>
<p><em>return 0</em> is very important. For a C programs, nearly <em>everything</em> returns a value. If this value is 0, then the code was successful, otherwise the code has errors – but more on this later.</p>
<p>You may have noticed the ‘;’ at the ends of the 2 lines of code in the <em>main</em> function. These semi-colons are vital, as they signify the end of a function call, or an assignment. with out it, you would get a lot of errors <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p><a href="http://computersciencesource.files.wordpress.com/2009/11/helloworld6.png"><img title="HelloWorld" style="display:inline;border-width:0;" height="17" alt="HelloWorld" src="http://computersciencesource.files.wordpress.com/2009/11/helloworld_thumb6.png?w=208&#038;h=17" width="208" border="0" /></a> </p>
<p>And finally we have the close <em>{</em> tag, that signifies the end of the <em>main</em> function, and the program altogether.</p>
<p>&#160;</p>
<p>Next we’ll take a look at <em>Comments</em> for your code – these are a vital part of coding, especially for when you have hundreds of lines of code O_O</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Chocaccro]]></title>
<link>http://rikkolepirate.wordpress.com/2009/11/23/chocaccro/</link>
<pubDate>Mon, 23 Nov 2009 14:07:07 +0000</pubDate>
<dc:creator>rikkolepirate</dc:creator>
<guid>http://rikkolepirate.wordpress.com/2009/11/23/chocaccro/</guid>
<description><![CDATA[Chocolate rule the world !!! Who is Chocaccro? I must say one of my favorites ! Not only because she]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="alignnone size-thumbnail wp-image-22" title="Chocaccro" src="http://rikkolepirate.wordpress.com/files/2009/09/chocaccro.jpg?w=113" alt="Chocaccro" width="113" height="150" />Chocolate rule the world !!!</p>
<p>Who is Chocaccro?<!--more--></p>
<p>I must say one of my favorites !</p>
<p>Not only because she is on my crew, but because she is one of the best girlz ever met on the web !<br />
And she speaks french ! Ya see, a lot of good points fer her !!!</p>
<p>Please welcome <strong>CHOCACCRO</strong> !<br />
Her name means &#8220;she is addicted to chocolate&#8221; (and as far as I know, seems tis not a legend !), that the reason why I decided to draw her making a chocolate cake !</p>
<p>Unfortunatly she does not like violet that much and prefer to wear red (nobody is perfect!)</p>
<p><img class="aligncenter size-full wp-image-22" title="Chocaccro" src="http://rikkolepirate.wordpress.com/files/2009/09/chocaccro.jpg" alt="Chocaccro" width="497" height="657" /></p>
<p><img class="aligncenter size-full wp-image-296" title="giant_cookie" src="http://rikkolepirate.wordpress.com/files/2009/11/giant_cookie.jpg" alt="giant_cookie" width="400" height="300" /></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[TJU 2346., PKU 2924   Gauß in Elementary School ]]></title>
<link>http://itsevening.wordpress.com/2009/11/23/tju-2346-pku-2924-gaus-in-elementary-school/</link>
<pubDate>Mon, 23 Nov 2009 14:04:02 +0000</pubDate>
<dc:creator>whoami</dc:creator>
<guid>http://itsevening.wordpress.com/2009/11/23/tju-2346-pku-2924-gaus-in-elementary-school/</guid>
<description><![CDATA[Gauß in Elementary School TJU 2346 PKU 2924 --AC-- #include&lt;stdio.h&gt; #include&lt;stdlib.h&gt; ]]></description>
<content:encoded><![CDATA[Gauß in Elementary School TJU 2346 PKU 2924 --AC-- #include&lt;stdio.h&gt; #include&lt;stdlib.h&gt; ]]></content:encoded>
</item>
<item>
<title><![CDATA[Crayonofdark]]></title>
<link>http://rikkolepirate.wordpress.com/2009/11/23/crayonofdark/</link>
<pubDate>Mon, 23 Nov 2009 13:35:56 +0000</pubDate>
<dc:creator>rikkolepirate</dc:creator>
<guid>http://rikkolepirate.wordpress.com/2009/11/23/crayonofdark/</guid>
<description><![CDATA[Another cute one from SAGE ! Who is Crayonofdark ? She love to ram the ocean with her crayon in the ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="alignleft size-thumbnail wp-image-29" title="crayonofdark" src="http://rikkolepirate.wordpress.com/files/2009/09/crayonofdark.jpg?w=111" alt="crayonofdark" width="111" height="150" />Another cute one from SAGE !</p>
<p>Who is Crayonofdark ?<!--more--></p>
<p>She love to ram the ocean with her crayon in the han !!! </p>
<p>B<span style="font-family:Arial;">e carefull, she may draw moustaches to yer portrait !!!)</span></p>
<p><img class="aligncenter size-full wp-image-29" title="crayonofdark" src="http://rikkolepirate.wordpress.com/files/2009/09/crayonofdark.jpg" alt="crayonofdark" width="497" height="671" /></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Cordelia]]></title>
<link>http://rikkolepirate.wordpress.com/2009/11/23/cordelia/</link>
<pubDate>Mon, 23 Nov 2009 13:30:39 +0000</pubDate>
<dc:creator>rikkolepirate</dc:creator>
<guid>http://rikkolepirate.wordpress.com/2009/11/23/cordelia/</guid>
<description><![CDATA[The youngest daughter of the king ! "Unhappy that I am, I cannot heave My heart into my mouth: I lov]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><span style="font-size:x-small;"><span style="font-family:Arial;"><img class="alignleft size-thumbnail wp-image-28" title="cordelia" src="http://rikkolepirate.wordpress.com/files/2009/09/cordelia.jpg?w=150" alt="cordelia" width="150" height="111" />The youngest daughter of the king !</span></span></p>
<pre><span style="font-size:x-small;"><span style="font-family:Arial;"><strong><em></em></strong></span></span>
<span style="font-size:x-small;"><span style="font-family:Arial;"><strong><em></em></strong></span></span>
<span style="font-size:x-small;"><span style="font-family:Arial;"><strong><em></em></strong></span></span>
<span style="font-size:x-small;"><span style="font-family:Arial;"><strong><em></em></strong></span></span>
<span style="font-size:x-small;"><span style="font-family:Arial;"><strong><em><span style="color:black;" lang="EN-GB">"</span><span style="color:black;" lang="EN-GB">Unhappy that I am, I cannot heave</span></em></strong></span></span>
<span style="color:black;" lang="EN-GB"><span style="font-size:x-small;"><span style="font-family:Arial, Helvetica, sans-serif;"><strong><em>My heart into my mouth: I love your majesty</em></strong></span></span></span>
<span style="color:black;" lang="EN-GB"><span style="font-size:x-small;"><span style="font-family:Arial, Helvetica, sans-serif;"><strong><em>According to my bond; no more nor less."</em></strong></span></span></span>
<span style="color:black;" lang="EN-GB"><span style="font-family:Arial, Helvetica, sans-serif;font-size:x-small;"> </span></span><span style="color:black;" lang="EN-GB"><span style="font-family:Arial, Helvetica, sans-serif;font-size:x-small;">(King Lear Act I Scene I)</span></span>
<!--more-->
<span style="color:black;" lang="EN-GB"><span style="font-family:Arial, Helvetica, sans-serif;font-size:x-small;">Who's Cordelia ?</span></span>
<span style="color:black;" lang="EN-GB"><span style="font-family:Arial, Helvetica, sans-serif;font-size:x-small;">See wot a courageaous and faithfull girl she is !!!</span></span>

<span style="color:black;" lang="EN-GB"><span style="font-family:Arial, Helvetica, sans-serif;font-size:x-small;">Welcome please CORDELIA ans her Favorite pirate (elephant) ALFREDO !!!</span></span>

<span style="color:black;" lang="EN-GB"><img class="aligncenter size-full wp-image-28" title="cordelia" src="http://rikkolepirate.wordpress.com/files/2009/09/cordelia.jpg" alt="cordelia" width="497" height="368" /></span></pre>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Switch vs. Delegate]]></title>
<link>http://jpleonidas.wordpress.com/2009/11/23/switch-vs-delegate/</link>
<pubDate>Mon, 23 Nov 2009 13:28:31 +0000</pubDate>
<dc:creator>jpaulorio</dc:creator>
<guid>http://jpleonidas.wordpress.com/2009/11/23/switch-vs-delegate/</guid>
<description><![CDATA[Olá novamente! Hoje recebi um email de um colega, através de uma lista de discussão de dot.net, com ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Olá novamente!</p>
<p>Hoje recebi um email de um colega, através de uma lista de discussão de dot.net, com uma dúvida sobre a otimização de switchs. Lembrei então de já ter visto um código em C que utilizava ponteiros de funções ao invés de switchs.</p>
<p>Resolvi então implementar uma solução similar em C# utilizando delegates no lugar dos ponteiros de funções. O código implementa as quatro operações aritméticas básicas dados dois números reais.</p>
<p>Para isso, foi definida a classe Calculadora com os métodos referentes as quatro operações. Além desses métodos foram definidos outros dois, o ExecutaComSwitch, que e executa uma operação realizando um teste com switch e o ExecutaComDelegate, que recebe um delegate com a operação a ser executada.</p>
<p>O programa principal recebe os valores de duas variáveis reais e em seguida executa as quatro operações utilizando o método com switch e o método com delegate.</p>
<p>O código da aplicação (console) é o seguinte:</p>
<p>&#160;</p>
<div id="_mcePaste">using System;</div>
<div id="_mcePaste">using System.Collections.Generic;</div>
<div id="_mcePaste">using System.Linq;</div>
<div id="_mcePaste">using System.Text;</div>
<div id="_mcePaste">namespace Switch</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">public enum TipoOperacao { Soma, Subtracao, Multiplicacao, Divisao};</div>
<div id="_mcePaste">public delegate double OperacaoDelegate(double a, double b);</div>
<div id="_mcePaste">public class Calculadora</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">public double Soma(double a, double b)</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">return a + b;</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">public double Substracao(double a, double b)</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">return a &#8211; b;</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">public double Multiplicacao(double a, double b)</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">return a * b;</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">public double Divisao(double a, double b)</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">return a / b;</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">public double ExecutaComSwitch(TipoOperacao op, double a, double b)</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">double resultado = 0;</div>
<div id="_mcePaste">switch (op)</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">case TipoOperacao.Soma:</div>
<div id="_mcePaste">resultado = this.Soma(a, b);</div>
<div id="_mcePaste">break;</div>
<div id="_mcePaste">case TipoOperacao.Subtracao:</div>
<div id="_mcePaste">resultado = this.Substracao(a, b);</div>
<div id="_mcePaste">break;</div>
<div id="_mcePaste">case TipoOperacao.Multiplicacao:</div>
<div id="_mcePaste">resultado = this.Multiplicacao(a, b);</div>
<div id="_mcePaste">break;</div>
<div id="_mcePaste">case TipoOperacao.Divisao:</div>
<div id="_mcePaste">resultado = this.Divisao(a, b);</div>
<div id="_mcePaste">break;</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">return resultado;</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">public double ExecutaComDelegate(OperacaoDelegate op, double a, double b)</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">return op(a, b);</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">class Program</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">static void Main(string[] args)</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">double a, b;</div>
<div id="_mcePaste">Calculadora calc = new Calculadora();</div>
<div id="_mcePaste">Console.Clear();</div>
<div id="_mcePaste">Console.WriteLine(&#8220;Informe o valor de A:&#8221;);</div>
<div id="_mcePaste">double.TryParse(Console.ReadLine(), out a);</div>
<div id="_mcePaste">Console.WriteLine(&#8220;Informe o valor de B:&#8221;);</div>
<div id="_mcePaste">double.TryParse(Console.ReadLine(), out b);</div>
<div id="_mcePaste">Console.WriteLine();</div>
<div id="_mcePaste">Console.WriteLine(&#8220;Usando switch:&#8221;);</div>
<div id="_mcePaste">double soma = calc.ExecutaComSwitch(TipoOperacao.Soma, a, b);</div>
<div id="_mcePaste">Console.WriteLine(&#8220;Soma: {0}&#8221;, soma.ToString(&#8220;#,##0.00&#8243;));</div>
<div id="_mcePaste">double subtracao = calc.ExecutaComSwitch(TipoOperacao.Subtracao, a, b);</div>
<div id="_mcePaste">Console.WriteLine(&#8220;Subtração: {0}&#8221;, subtracao.ToString(&#8220;#,##0.00&#8243;));</div>
<div id="_mcePaste">double multiplicacao = calc.ExecutaComSwitch(TipoOperacao.Multiplicacao, a, b);</div>
<div id="_mcePaste">Console.WriteLine(&#8220;Multiplicação: {0}&#8221;, multiplicacao.ToString(&#8220;#,##0.00&#8243;));</div>
<div id="_mcePaste">double divisao = calc.ExecutaComSwitch(TipoOperacao.Divisao, a, b);</div>
<div id="_mcePaste">Console.WriteLine(&#8220;Divisão: {0}&#8221;, divisao.ToString(&#8220;#,##0.00&#8243;));</div>
<div id="_mcePaste">Console.WriteLine();</div>
<div id="_mcePaste">Console.WriteLine(&#8220;Usando delegate:&#8221;);</div>
<div id="_mcePaste">soma = calc.ExecutaComDelegate(calc.Soma, a, b);</div>
<div id="_mcePaste">Console.WriteLine(&#8220;Soma: {0}&#8221;, soma.ToString(&#8220;#,##0.00&#8243;));</div>
<div id="_mcePaste">soma = calc.ExecutaComDelegate(calc.Substracao, a, b);</div>
<div id="_mcePaste">Console.WriteLine(&#8220;Subtração: {0}&#8221;, subtracao.ToString(&#8220;#,##0.00&#8243;));</div>
<div id="_mcePaste">soma = calc.ExecutaComDelegate(calc.Multiplicacao, a, b);</div>
<div id="_mcePaste">Console.WriteLine(&#8220;Multiplicação: {0}&#8221;, multiplicacao.ToString(&#8220;#,##0.00&#8243;));</div>
<div id="_mcePaste">soma = calc.ExecutaComDelegate(calc.Divisao, a, b);</div>
<div id="_mcePaste">Console.WriteLine(&#8220;Divisão: {0}&#8221;, divisao.ToString(&#8220;#,##0.00&#8243;));</div>
<div id="_mcePaste">Console.ReadLine();</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">}</div>
<p>using System;using System.Collections.Generic;using System.Linq;using System.Text;<br />
namespace Switch{    public enum TipoOperacao { Soma, Subtracao, Multiplicacao, Divisao};<br />
public delegate double OperacaoDelegate(double a, double b);<br />
public class Calculadora    {        public double Soma(double a, double b)        {            return a + b;        }<br />
public double Substracao(double a, double b)        {            return a &#8211; b;        }<br />
public double Multiplicacao(double a, double b)        {            return a * b;        }<br />
public double Divisao(double a, double b)        {            return a / b;        }<br />
public double ExecutaComSwitch(TipoOperacao op, double a, double b)        {            double resultado = 0;            switch (op)            {                case TipoOperacao.Soma:                    resultado = this.Soma(a, b);                    break;                case TipoOperacao.Subtracao:                    resultado = this.Substracao(a, b);                    break;                case TipoOperacao.Multiplicacao:                    resultado = this.Multiplicacao(a, b);                    break;                case TipoOperacao.Divisao:                    resultado = this.Divisao(a, b);                    break;            }            return resultado;        }<br />
public double ExecutaComDelegate(OperacaoDelegate op, double a, double b)        {            return op(a, b);        }    }<br />
class Program    {        static void Main(string[] args)        {            double a, b;            Calculadora calc = new Calculadora();                       Console.Clear();            Console.WriteLine(&#8220;Informe o valor de A:&#8221;);            double.TryParse(Console.ReadLine(), out a);            Console.WriteLine(&#8220;Informe o valor de B:&#8221;);            double.TryParse(Console.ReadLine(), out b);            Console.WriteLine();<br />
Console.WriteLine(&#8220;Usando switch:&#8221;);            double soma = calc.ExecutaComSwitch(TipoOperacao.Soma, a, b);            Console.WriteLine(&#8220;Soma: {0}&#8221;, soma.ToString(&#8220;#,##0.00&#8243;));            double subtracao = calc.ExecutaComSwitch(TipoOperacao.Subtracao, a, b);            Console.WriteLine(&#8220;Subtração: {0}&#8221;, subtracao.ToString(&#8220;#,##0.00&#8243;));            double multiplicacao = calc.ExecutaComSwitch(TipoOperacao.Multiplicacao, a, b);            Console.WriteLine(&#8220;Multiplicação: {0}&#8221;, multiplicacao.ToString(&#8220;#,##0.00&#8243;));            double divisao = calc.ExecutaComSwitch(TipoOperacao.Divisao, a, b);            Console.WriteLine(&#8220;Divisão: {0}&#8221;, divisao.ToString(&#8220;#,##0.00&#8243;));            Console.WriteLine();<br />
Console.WriteLine(&#8220;Usando delegate:&#8221;);            soma = calc.ExecutaComDelegate(calc.Soma, a, b);            Console.WriteLine(&#8220;Soma: {0}&#8221;, soma.ToString(&#8220;#,##0.00&#8243;));            soma = calc.ExecutaComDelegate(calc.Substracao, a, b);            Console.WriteLine(&#8220;Subtração: {0}&#8221;, subtracao.ToString(&#8220;#,##0.00&#8243;));            soma = calc.ExecutaComDelegate(calc.Multiplicacao, a, b);            Console.WriteLine(&#8220;Multiplicação: {0}&#8221;, multiplicacao.ToString(&#8220;#,##0.00&#8243;));            soma = calc.ExecutaComDelegate(calc.Divisao, a, b);            Console.WriteLine(&#8220;Divisão: {0}&#8221;, divisao.ToString(&#8220;#,##0.00&#8243;));</p>
<p>Console.ReadLine();        }    }}</p>
<p>&#160;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Cutiepirate]]></title>
<link>http://rikkolepirate.wordpress.com/2009/11/23/cutiepirate/</link>
<pubDate>Mon, 23 Nov 2009 13:25:40 +0000</pubDate>
<dc:creator>rikkolepirate</dc:creator>
<guid>http://rikkolepirate.wordpress.com/2009/11/23/cutiepirate/</guid>
<description><![CDATA[This beautifull pirate loves violet, purple, lavender and such ! Who&#8217;s Cutiepirate We dont hav]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="alignleft size-thumbnail wp-image-30" title="cutiepierate" src="http://rikkolepirate.wordpress.com/files/2009/09/cutiepierate.jpg?w=111" alt="cutiepierate" width="111" height="150" />This beautifull pirate loves violet, purple, lavender and such !</p>
<p>Who&#8217;s Cutiepirate</p>
<p><!--more--></p>
<p>We dont have much pirates that dress according to the &#8220;delicate art of violet&#8221;. Cutie is one of those among my favorites pîrates over the Sage Ocean !</p>
<p>She is a person of value fer sure !</p>
<p><img class="aligncenter size-full wp-image-30" title="cutiepierate" src="http://rikkolepirate.wordpress.com/files/2009/09/cutiepierate.jpg" alt="cutiepierate" width="497" height="671" /></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Citi &amp; UBS Under S&amp;P Eagle Eye (MFG, UBS, C, HBC, GS)]]></title>
<link>http://247wallst.com/2009/11/23/citi-ubs-under-sp-eagle-eye-mfg-ubs-c-hbc-gs/</link>
<pubDate>Mon, 23 Nov 2009 13:21:14 +0000</pubDate>
<dc:creator>247wallst</dc:creator>
<guid>http://247wallst.com/2009/11/23/citi-ubs-under-sp-eagle-eye-mfg-ubs-c-hbc-gs/</guid>
<description><![CDATA[Many, or most, major banks do not have enough capital to comfortably maintain their current ratings.]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="alignleft size-medium wp-image-54241" title="Bull and Bear Image" src="http://247wallst.wordpress.com/files/2009/11/bull-and-bear-image6.jpg?w=200" alt="" width="141" height="112" />Many, or most, major banks do not have enough capital to comfortably maintain their current ratings.  Standard &#38; Poor&#8217;s has a report out saying that the banks are underfunded despite capital raised and despite the recovery we have seen.  Standard &#38; Poor&#8217;s introduced a new tracking for capital adequacy and even questions how useful standard market and regulatory measures are.  Citigroup Inc. (NYSE: C) and UBS AG (NYSE: UBS) are two of the trouble spots outlined herein.<br />
<!--more--><br />
In the larger international banks, S&#38;P noted that the average risk-adjusted capital ratios in those banks it reviews was 6.7%.  That is over 3% under average tier one ratios.  S&#38;P believes that the current capital &#8220;remains a neutral to negative rating factor for the majority of banks&#8221; it covers. S&#38;P now believes that banks need to have a risk-adjusted capital ratio of at least 8%.  S&#38;P has issues over tier one and leverage ratios, because they do not adjust for risks and are not consistent.</p>
<p>Mizuho Financial Group Inc. (NYSE: MFG) was listed as the most vulnerable at an approximate 2% ratio; and UBS AG (NYSE: UBS) and Citigroup Inc. (NYSE: C) remained among the weaker banks.</p>
<p>HSBC Holdings PLC (NYSE: HBC) was the strongest with a 9.2% ratio; and ING Bank NV (NYSE: ING) and Goldman Sachs Group Inc. (NYSE: GS) were also listed in the stronger bank category.  24/7 Watt St. still argues that Goldman Sachs is a bank that is truly no bank.</p>
<p>When you see reports like this it is not always a signal of an imminent downgrade.  But the tone sure sounds more like downgrades are coming if more capital is not raised or if things do not just start to improve on their own.</p>
<p>JON C. OGG</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
