<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C7000D.CBB378A0">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;
        mso-font-charset:2;
        mso-generic-font-family:auto;
        mso-font-pitch:variable;
        mso-font-signature:0 268435456 0 0 -2147483648 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;
        text-underline:single;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:windowtext;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
span.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        mso-header-margin:35.4pt;
        mso-footer-margin:35.4pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple style='tab-interval:36.0pt'>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Am o <span class=SpellE>curiozitate</span> in <span
class=SpellE>legatura</span> cu o <span class=SpellE>problema</span> <span
class=SpellE>pe</span> care am <span class=SpellE>avut</span>-o la <span
class=SpellE>tema</span> 1 <span class=SpellE>pe</span> win.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>Problema</span></font></span> era ca <span
class=SpellE>nu</span> <span class=SpellE>imi</span> <span class=SpellE>trecea</span>
<span class=SpellE>testele</span> 1 <span class=SpellE>si</span> 2 (<span
class=SpellE>restul</span> <span class=SpellE>erau</span> <span class=GramE>passed
<font face=Wingdings><span style='font-family:Wingdings;mso-ascii-font-family:
"Times New Roman";mso-hansi-font-family:"Times New Roman";mso-char-type:symbol;
mso-symbol-font-family:Wingdings'><span style='mso-char-type:symbol;mso-symbol-font-family:
Wingdings'>J</span></span></font></span> )<o:p></o:p></p>

<p class=MsoNormal><span class=SpellE><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>Cauza</span></font></span> era <span class=SpellE>urmatoarea</span>:
<span class=SpellE>outputul</span> <span class=SpellE>comenzilor</span> era <span
class=SpellE>corect</span> <span class=SpellE>dar</span> se <span class=SpellE>afisa</span>
<o:p></o:p></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>inainte</span></font></span></span>
<span class=SpellE>sa</span> se <span class=SpellE>afiseze</span> <span
class=SpellE>promptul</span>. <span class=SpellE>Adica</span>:<o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>/<span class=SpellE>cygdrive</span>/e&#8230;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>CYGWIN_NT-5.1 <o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>costin</span></font></span></span><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&gt; <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&gt; <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Ordinea</span></font></span></span><span
class=GramE> <span class=SpellE>aceasta</span> de <span class=SpellE>afisare</span>
<span class=SpellE>aparea</span> <span class=SpellE>numai</span> <span
class=SpellE>pe</span> server, la mine <span class=SpellE>mergea</span> <span
class=SpellE>bine</span>.</span><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>Ideea</span></font></span> era ca <span class=SpellE>pe</span>
<span class=SpellE>versiunea</span> cu <span class=SpellE>probleme</span> <span
class=SpellE>eu</span> <span class=SpellE>afisam</span> <span class=SpellE>promptul</span>
cu:<o:p></o:p></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";mso-no-proof:yes'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";mso-no-proof:yes'>fprintf(stdout,<font color=maroon><span
style='color:maroon'>&quot;%s&quot;</span></font>,s);<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";mso-no-proof:yes'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>iar</span></font></span></span>
<span class=SpellE>pe</span> <span class=SpellE>versiunea</span> care a <span
class=SpellE>luat</span> <span class=SpellE>testele</span> 1 <span
class=SpellE>si</span> 2 <span class=SpellE>afisez</span> cu<o:p></o:p></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";mso-no-proof:yes'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";mso-no-proof:yes'>cout&lt;&lt;s.c_str();<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Care <span class=SpellE><span class=GramE>este</span></span> <span
class=SpellE>ideea</span>? <span class=SpellE>Implementarea</span> <span
class=SpellE>comenzilor</span> din <span class=SpellE>stdio.h</span> <span
class=SpellE>si</span> din <span class=SpellE>iostream</span> <span
class=SpellE>nu</span> <span class=SpellE>apeleaza</span> <span class=GramE>un</span>
<span class=SpellE>WriteFile</span> <span class=SpellE>sau</span> <span
class=SpellE>ceva</span>?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Cum se <span class=SpellE>poate</span> inversa <span class=SpellE>ordinea</span>
<span class=SpellE>textului</span> <span class=SpellE>afisat</span>, din moment
<span class=SpellE>ce</span> <span class=SpellE><span class=GramE>fprintf</span></span><span
class=GramE>(</span>..) <span class=SpellE>este</span> <span class=SpellE>sigur</span>
<span class=SpellE>apelat</span> <span class=SpellE>inainte</span> de <span
class=SpellE>CreateProcess</span>(..)?<o:p></o:p></span></font></p>

</div>

</body>

</html>