<?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-4545188702493747232</id><updated>2024-10-06T23:15:46.582-05:00</updated><category term="ProLengC"/><category term="c"/><category term="hola"/><category term="mundo"/><category term="parte"/><category term="primer"/><category term="programa"/><category term="programacion"/><category term="PNCMB"/><category term="blog"/><category term="como"/><category term="compilador"/><category term="dos"/><category term="editor"/><category term="ejercicios"/><category term="geekiespacio"/><category term="gotoxy"/><category term="informacion"/><category term="introduccion"/><category term="invextar"/><category term="lenguaje"/><category term="mostrar"/><category term="pantalla"/><category term="peculiaridades"/><category term="printf"/><category term="se hace"/><category term="uno"/><category term="ñengo flow"/><title type='text'>ProLengC</title><subtitle type='html'>Programación En Lenguaje C y Mas.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://prolengc.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4545188702493747232/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://prolengc.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Xavier Figueroa</name><uri>http://www.blogger.com/profile/13533895757696407305</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>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4545188702493747232.post-3830114293441880011</id><published>2011-12-23T16:12:00.000-05:00</published><updated>2011-12-23T16:12:02.047-05:00</updated><title type='text'>Prueba</title><content type='html'>&lt;span style=&quot;background-color: #f9f9f9; line-height: 19px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Lorem ipsum ad his scripta blandit partiendo, eum fastidii accumsan euripidis in, eum liber hendrerit an. Qui ut wisi vocibus suscipiantur, quo dicit ridens inciderint id. Quo mundi lobortis reformidans eu, legimus senserit definiebas an eos. Eu sit tincidunt incorrupte definitionem, vis mutat affert percipit cu, eirmod consectetuer signiferumque eu per. In usu latine equidem dolores. Quo no falli viris intellegam, ut fugit veritus placerat per.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 0.5em; margin-top: 0.4em;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Ius id vidit volumus mandamus, vide veritus democritum te nec, ei eos debet libris consulatu. No mei ferri graeco dicunt, ad cum veri accommodare. Sed at malis omnesque delicata, usu et iusto zzril meliore. Dicunt maiorum eloquentiam cum cu, sit summo dolor essent te. Ne quodsi nusquam legendos has, ea dicit voluptua eloquentiam pro, ad sit quas qualisque. Eos vocibus deserunt quaestio ei.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 0.5em; margin-top: 0.4em;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Blandit incorrupte quaerendum in quo, nibh impedit id vis, vel no nullam semper audiam. Ei populo graeci consulatu mei, has ea stet modus phaedrum. Inani oblique ne has, duo et veritus detraxit. Tota ludus oratio ea mel, offendit persequeris ei vim. Eos dicat oratio partem ut, id cum ignota senserit intellegat. Sit inani ubique graecis ad, quando graecis liberavisse et cum, dicit option eruditi at duo. Homero salutatus suscipiantur eum id, tamquam voluptaria expetendis ad sed, nobis feugiat similique usu ex.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://prolengc.blogspot.com/feeds/3830114293441880011/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://prolengc.blogspot.com/2011/12/prueba.html#comment-form' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4545188702493747232/posts/default/3830114293441880011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4545188702493747232/posts/default/3830114293441880011'/><link rel='alternate' type='text/html' href='http://prolengc.blogspot.com/2011/12/prueba.html' title='Prueba'/><author><name>Anonymous</name><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/blank.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4545188702493747232.post-6743964737260893554</id><published>2011-10-13T16:50:00.002-05:00</published><updated>2011-10-13T16:56:40.762-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PNCMB"/><title type='text'>PNCMB</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKWQ6gt6TDdiGqHj-n39bjZKEwhW9SRHu0LPNDSXGjp23ZTJFSaUBDKeTzA7dmbZJecWyNKNYtwnehTREVigs0sVEdfJh6lfUF0CD9wSAG5ERSVFXVAXhwe_-xBrFlR846_bSM_6E2_nPi/s1600/Cool-256x256.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKWQ6gt6TDdiGqHj-n39bjZKEwhW9SRHu0LPNDSXGjp23ZTJFSaUBDKeTzA7dmbZJecWyNKNYtwnehTREVigs0sVEdfJh6lfUF0CD9wSAG5ERSVFXVAXhwe_-xBrFlR846_bSM_6E2_nPi/s200/Cool-256x256.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Hola, en el post anterior les explicaba que iva a crear un nuevo blog para no crear mas centrados en un solo tema, bueno, ya lo cree, la plantilla es similar a esta porque, esta la hice con blogger y realmente me gusto como me salio así que la de &lt;a href=&quot;http://pncmb.blogspot.com/&quot;&gt;PNCMB&lt;/a&gt; la hice igual.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Visitenla, pronto publicare: &lt;a href=&quot;http://pncmb.blogspot.com/&quot;&gt;http://pncmb.blogspot.com&lt;/a&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://prolengc.blogspot.com/feeds/6743964737260893554/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://prolengc.blogspot.com/2011/10/pncmb_13.html#comment-form' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4545188702493747232/posts/default/6743964737260893554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4545188702493747232/posts/default/6743964737260893554'/><link rel='alternate' type='text/html' href='http://prolengc.blogspot.com/2011/10/pncmb_13.html' title='PNCMB'/><author><name>Xavier Figueroa</name><uri>http://www.blogger.com/profile/13533895757696407305</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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKWQ6gt6TDdiGqHj-n39bjZKEwhW9SRHu0LPNDSXGjp23ZTJFSaUBDKeTzA7dmbZJecWyNKNYtwnehTREVigs0sVEdfJh6lfUF0CD9wSAG5ERSVFXVAXhwe_-xBrFlR846_bSM_6E2_nPi/s72-c/Cool-256x256.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Santiago de Guayaquil, Ecuador</georss:featurename><georss:point>-2.1833333 -79.8833333</georss:point><georss:box>-2.4255633000000003 -80.0774823 -1.9411033000000002 -79.689184300000008</georss:box></entry><entry><id>tag:blogger.com,1999:blog-4545188702493747232.post-7073634534309983346</id><published>2011-10-12T10:57:00.000-05:00</published><updated>2011-10-12T10:57:51.075-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="blog"/><category scheme="http://www.blogger.com/atom/ns#" term="geekiespacio"/><category scheme="http://www.blogger.com/atom/ns#" term="invextar"/><category scheme="http://www.blogger.com/atom/ns#" term="ProLengC"/><title type='text'>Disculpen!!!</title><content type='html'>&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Hace unas semanas o algo mas de un mes, cree este blog llamado &lt;/span&gt;&lt;a href=&quot;http://prolengc.blogspot.com/&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;ProLengC&lt;/a&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;, solo porque en ese instante me comenzaron a dar ganas de aprender programacion en c. &lt;/span&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt; Mucho antes de eso cree &lt;a href=&quot;http://geekiespacio.co.cc/&quot;&gt;GeekiEspacio&lt;/a&gt; solo porque me comenzo a gustar todo acerca de tecnologia y todo eso.&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt; &lt;/span&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt; Antes de crear ProLengC cree otro que se llama Invextar, solo porque  comenzo a gustarme la idea de hacer manualidades y cosas con materiales  caseros.&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt; &lt;/span&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt; Mucho mucho antes de geekiespacio cree uno (no en blogger)&amp;nbsp; sobre cosas chistosas chistes y demas.&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt; &lt;/span&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt; En fin, cree blogs cuando me daban ganas de hacer algo diferente y los  dejaba cuando me aburrian, creo que se justifica al decir que tengo 14  años (a esta edad creo que cambiamos de parecer muy rapido). Bueno voy  al punto. VOY A CREAR OTRO BLOG. Pero esta vez no se va a centrar en  algo en especifico, es un blog de todo un poco, cada vez que me den  ganas de hacer algo nuevo lo voy a poner ahi, y asi no crear diferentes  blogs a cada rato.&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Este blog quedara cerrado despues de crear el otro.&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt; &lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Les avisare cuando lo haya creado. &lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://prolengc.blogspot.com/feeds/7073634534309983346/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://prolengc.blogspot.com/2011/10/disculpen.html#comment-form' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4545188702493747232/posts/default/7073634534309983346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4545188702493747232/posts/default/7073634534309983346'/><link rel='alternate' type='text/html' href='http://prolengc.blogspot.com/2011/10/disculpen.html' title='Disculpen!!!'/><author><name>Xavier Figueroa</name><uri>http://www.blogger.com/profile/13533895757696407305</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>0</thr:total><georss:featurename>Santiago de Guayaquil, Ecuador</georss:featurename><georss:point>-2.1833333 -79.8833333</georss:point><georss:box>-2.4255633000000003 -80.0774823 -1.9411033000000002 -79.689184300000008</georss:box></entry><entry><id>tag:blogger.com,1999:blog-4545188702493747232.post-7093672601395518517</id><published>2011-10-09T17:37:00.001-05:00</published><updated>2011-10-09T17:38:29.821-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ñengo flow"/><title type='text'>No Necesariamente Acerca De Programacion</title><content type='html'>&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Hola gente que hay, estoy promocionando mi canal en youtube, jeje. Realmente cada semana me dan ganas de hacer algo nuevo, jajaja.&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Es de musica, de un cantante de Reggae/Rap llamado Ñengo Flow. Me encanta como canta.&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Este Es Mi Canal: &lt;a href=&quot;http://www.youtube.com/user/RG4LNengoFlow&quot;&gt;http://www.youtube.com/user/RG4LNengoFlow&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Ademas aqui les dejo uno de los videos. (Nota: El canal es nuevo, por eso tengo pocos videos)&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-family: Arial,Helvetica,sans-serif; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-family: Arial,Helvetica,sans-serif; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-family: Arial,Helvetica,sans-serif; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/EDQAbqSOTpk?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://prolengc.blogspot.com/feeds/7093672601395518517/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://prolengc.blogspot.com/2011/10/no-necesariamente-acerca-de.html#comment-form' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4545188702493747232/posts/default/7093672601395518517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4545188702493747232/posts/default/7093672601395518517'/><link rel='alternate' type='text/html' href='http://prolengc.blogspot.com/2011/10/no-necesariamente-acerca-de.html' title='No Necesariamente Acerca De Programacion'/><author><name>Xavier Figueroa</name><uri>http://www.blogger.com/profile/13533895757696407305</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>0</thr:total><georss:featurename>Santiago de Guayaquil, Ecuador</georss:featurename><georss:point>-2.1833333 -79.8833333</georss:point><georss:box>-2.4255633000000003 -80.0774823 -1.9411033000000002 -79.689184300000008</georss:box></entry><entry><id>tag:blogger.com,1999:blog-4545188702493747232.post-3673935361381708273</id><published>2011-10-06T17:26:00.002-05:00</published><updated>2011-10-06T17:28:56.340-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gotoxy"/><category scheme="http://www.blogger.com/atom/ns#" term="informacion"/><category scheme="http://www.blogger.com/atom/ns#" term="mostrar"/><category scheme="http://www.blogger.com/atom/ns#" term="pantalla"/><category scheme="http://www.blogger.com/atom/ns#" term="printf"/><title type='text'>Poner Informacion En Pantalla (Parte I)</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1yUZKxVSxgqSCio9MlJXO_q-CeWcPYc0GAc353nJOIvrCiZXw4qcdO6C75tphATozFvhifh0L5HtJdl9OMEjLfsaADm95BZDiNU7Sa67vvykv0SMzlEztTy50QaaCVyGZ59JKA1Iyl6qV/s1600/usando-printf.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;programa en c ejecutado&quot; border=&quot;0&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1yUZKxVSxgqSCio9MlJXO_q-CeWcPYc0GAc353nJOIvrCiZXw4qcdO6C75tphATozFvhifh0L5HtJdl9OMEjLfsaADm95BZDiNU7Sa67vvykv0SMzlEztTy50QaaCVyGZ59JKA1Iyl6qV/s320/usando-printf.PNG&quot; title=&quot;Usando Printf&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Printf: Imprimir En Pantalla &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Siempre cuando empiezo algo nuevo me gusta ver los resultados creo que también al programar, ver que nuestro programa hace algo. Por eso creo que el curso debe empezar con la función printf, que sirve para sacar información por pantalla.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Para utilizar la función &lt;i&gt;printf&lt;/i&gt; en nuestros programas debemos incluir la directiva…:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;… Al principio del programa. Como hemos visto en el programa &lt;i&gt;Hola Mundo&lt;/i&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Si solo queremos imprimir una cadena basta con hacer (no olvides el “;” al final):&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;printf (&lt;span style=&quot;color: red;&quot;&gt;“Cadena”&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Esto resultara por pantalla:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: cyan; font-family: Arial,Helvetica,sans-serif;&quot;&gt;Cadena&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Lo que pongamos entre comillas es lo que vamos a sacar por pantalla.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Si volvemos a usar otro &lt;i&gt;printf&lt;/i&gt;, por ejemplo:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;int main ()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf (&lt;span style=&quot;color: red;&quot;&gt;“Cadena”&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf (&lt;span style=&quot;color: red;&quot;&gt;“Segunda”&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Obtendremos:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: cyan; font-family: Arial,Helvetica,sans-serif;&quot;&gt;CadenaSegunda&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Este ejemplo nos muestra cómo funciona &lt;i&gt;printf&lt;/i&gt;. Para escribir en la pantalla se usa un cursor que no vemos. Cuando escribimos algo el cursor va al final del texto. Cuando el texto llega al final de la fila, lo siguiente que pongamos ira a la fila siguiente. Si lo que queremos es sacar cada una en una línea lo que debemos usar es \n. Es el indicador de retorno de carro. Los que hace es saltar el cursor de escritura a la línea siguiente:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;int main ()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf (&lt;span style=&quot;color: red;&quot;&gt;“Cadena\n”&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf (&lt;span style=&quot;color: red;&quot;&gt;“Segunda”&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Y tendremos:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: cyan; font-family: Arial,Helvetica,sans-serif;&quot;&gt;Cadena&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: cyan; font-family: Arial,Helvetica,sans-serif;&quot;&gt;Segunda&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;También podemos poner más de una cadena dentro de &lt;i&gt;printf&lt;/i&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;printf (&lt;span style=&quot;color: red;&quot;&gt;“Primera Cadena”&amp;nbsp; “Segunda Cadena”&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Lo que no podemos hacer es meter cosas entre las cadenas:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;printf (&lt;span style=&quot;color: red;&quot;&gt;“Primera Cadena” texto en medio “Segunda Cadena”&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Esto no es válido. Cuando el compilador intenta interpretar esta sentencia &lt;i&gt;“Primera Cadena”&lt;/i&gt; y luego texto en medio, no sabe qué hacer y da un error.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Pero… ¿Qué pasa si queremos escribir el símbolo “ en pantalla?. Por ejemplo imaginemos que queremos escribir:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: cyan; font-family: Arial,Helvetica,sans-serif;&quot;&gt;Esto es “extraño”&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Si para ello hacemos:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;printf (&lt;span style=&quot;color: red;&quot;&gt;“Esto es “extraño””&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Obtendremos unos cuantos errores. El problema es que el símbolo “ se usa para indicar al compilador el comienzo o final de una cadena. Así que en realidad le estaríamos dando la cadena &lt;i&gt;“Esto es”&lt;/i&gt; y luego otra cadena vacía “”.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;La solución es usar \. Veamos:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;printf (&lt;span style=&quot;color: red;&quot;&gt;“Esto es \”extraño\””&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Esta vez todo irá bien. Como vemos la contrabarra (\) sirve para indicarle al compilador que escriba caracteres que de otra forma no podríamos.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Esta contrabarra se usa en C para indicar al compilador que queremos meter símbolos especiales. Pero ¿Y si lo que queremos es usar \ como un caracter normal y poner por ejemplo &lt;i&gt;Hola\Adiós&lt;/i&gt;?. Pues muy fácil. Volvemos a usar \.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;printf (&lt;span style=&quot;color: red;&quot;&gt;“Hola\\Adiós”&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Esta doble contrabarra le indica a C que lo que queremos es mostrar \.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Esto solo ha sido una breve introducción a &lt;i&gt;printf&lt;/i&gt;, luego volveremos sobre ella.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Despues veremos mas sobre como imprimir en pantalla. &lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://prolengc.blogspot.com/feeds/3673935361381708273/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://prolengc.blogspot.com/2011/10/mostrando-informacion-por-pantalla.html#comment-form' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4545188702493747232/posts/default/3673935361381708273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4545188702493747232/posts/default/3673935361381708273'/><link rel='alternate' type='text/html' href='http://prolengc.blogspot.com/2011/10/mostrando-informacion-por-pantalla.html' title='Poner Informacion En Pantalla (Parte I)'/><author><name>Xavier Figueroa</name><uri>http://www.blogger.com/profile/13533895757696407305</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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1yUZKxVSxgqSCio9MlJXO_q-CeWcPYc0GAc353nJOIvrCiZXw4qcdO6C75tphATozFvhifh0L5HtJdl9OMEjLfsaADm95BZDiNU7Sa67vvykv0SMzlEztTy50QaaCVyGZ59JKA1Iyl6qV/s72-c/usando-printf.PNG" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Santiago de Guayaquil, Ecuador</georss:featurename><georss:point>-2.1833333 -79.8833333</georss:point><georss:box>-2.4255633000000003 -80.0774823 -1.9411033000000002 -79.689184300000008</georss:box></entry><entry><id>tag:blogger.com,1999:blog-4545188702493747232.post-270064074529621874</id><published>2011-10-02T10:29:00.001-05:00</published><updated>2011-10-02T10:32:02.387-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="como"/><category scheme="http://www.blogger.com/atom/ns#" term="dos"/><category scheme="http://www.blogger.com/atom/ns#" term="ejercicios"/><category scheme="http://www.blogger.com/atom/ns#" term="hola"/><category scheme="http://www.blogger.com/atom/ns#" term="mundo"/><category scheme="http://www.blogger.com/atom/ns#" term="parte"/><category scheme="http://www.blogger.com/atom/ns#" term="primer"/><category scheme="http://www.blogger.com/atom/ns#" term="programa"/><category scheme="http://www.blogger.com/atom/ns#" term="se hace"/><title type='text'>El Primer Programa: Hola Mundo (Parte II)</title><content type='html'>&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoPnm8UnyFQopaJfvF-0XKlv7dyxP2xB9VM27tSdxnifIuEd3C0t8jyfHiWlcQ7BHz-TQM72KvVGOk4f4k9gR5Dn8xW_I64LIAwHlt-5GHCObduspJj2wYsSjRs2WmZKwvmpUfYWcEehm1/s1600/hola-mundo-en-dev-c%252B%252B.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;programa en dev-c++&quot; border=&quot;0&quot; height=&quot;230&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoPnm8UnyFQopaJfvF-0XKlv7dyxP2xB9VM27tSdxnifIuEd3C0t8jyfHiWlcQ7BHz-TQM72KvVGOk4f4k9gR5Dn8xW_I64LIAwHlt-5GHCObduspJj2wYsSjRs2WmZKwvmpUfYWcEehm1/s320/hola-mundo-en-dev-c%252B%252B.PNG&quot; title=&quot;Hola Mundo En Dev-C++&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black;&quot;&gt;¿Como Se Hace?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black;&quot;&gt;Primero debemos crear el código fuente del programa el cual ya lo tienen arriba. Ejecuta tu compilador de C, sea cual sea. Crea un nuevo fichero y copia el código anterior. Llámalo por ejemplo &lt;i&gt;primero.c&lt;/i&gt; u &lt;i&gt;holamundo.c&lt;/i&gt; (en ocasiones no hay que poner .c)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black;&quot;&gt;Ahora, tenemos que compilar el programa para crear el ejecutable. Si tu compilador es de Windows, o tiene menús busca una opción llamada compilar, compilar y ejecutar, construir o algo así.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black;&quot;&gt;&lt;b&gt;Nota Adicional Sobre Los Comentarios&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black;&quot;&gt;Los comentarios se pueden poner casi en cualquier parte. Excepto en medio de una instrucción. Por ejemplo, lo siguiente no es válido:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% rgb(255, 255, 255); color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;pri/* Esto es un comentario */ntf( &quot;Hola mundo&quot; );&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black;&quot;&gt;No podemos cortar a &lt;i&gt;printf&lt;/i&gt; por en medio, tendríamos un error al compilar. Lo siguiente no daría error (al menos usando DJGPP), pero es una fea costumbre:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% yellow; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;printf( /* Esto es un comentario */ &quot;Hola mundo&quot; );&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black;&quot;&gt;Y también tenemos:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: none repeat scroll 0% 0% yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;printf( &quot;Hola/* Esto es un comentario */ mundo&quot; );&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black;&quot;&gt;Que no daría error, pero al ejecutar tendríamos:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% aqua; color: black;&quot;&gt;Hola /* Esto es un comentario */ mundo&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black;&quot;&gt;Porque &lt;i&gt;/* Esto es un comentario */&lt;/i&gt; queda dentro de las comillas y C lo interpreta como texto, no como un comentario.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black;&quot;&gt;¿Que Sabemos Hacer?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black;&quot;&gt;Pues aun no hemos aprendido mucho. Lo único que podemos hacer es compilar nuestros programas. Pero paciencia, en unos post mas avanzaremos mas.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black;&quot;&gt;Ejercicios&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;u&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black;&quot;&gt;Ejercicio 1:&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black;&quot;&gt; Busca los errores en este programa:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% yellow; color: black;&quot;&gt;int main()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% yellow; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% yellow; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Aquí va el cuerpo del programa */&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% yellow; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Printf( &quot;Hola mundo\n&quot; );&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% yellow; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% yellow; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;u&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black;&quot;&gt;Solución:&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black;&quot;&gt; Si lo compilamos posiblemente obtendremos un error que nos indicará que no hemos definido la función &lt;i&gt;Printf&lt;/i&gt;. Esto es porque:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black;&quot;&gt;No hemos incluido la dichosa directiva &lt;i&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/i&gt;. (En algunos compiladores no es necesario incluir esta directiva, pero es una buena costumbre hacerlo).&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black;&quot;&gt;Si lo corregimos y volvemos a compilar obtendremos un nuevo error. Otra vez nos dice que desconoce &lt;i&gt;Printf&lt;/i&gt;. Esta vez el problema es:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black;&quot;&gt;El de las mayúsculas que hemos indicado antes. Lo correcto es poner &lt;i&gt;printf&lt;/i&gt; con minúsculas. Parece una tontería, pero seguro que nos da más de un problema.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://prolengc.blogspot.com/feeds/270064074529621874/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://prolengc.blogspot.com/2011/10/el-primer-programa-hola-mundo-parte-ii.html#comment-form' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4545188702493747232/posts/default/270064074529621874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4545188702493747232/posts/default/270064074529621874'/><link rel='alternate' type='text/html' href='http://prolengc.blogspot.com/2011/10/el-primer-programa-hola-mundo-parte-ii.html' title='El Primer Programa: Hola Mundo (Parte II)'/><author><name>Xavier Figueroa</name><uri>http://www.blogger.com/profile/13533895757696407305</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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoPnm8UnyFQopaJfvF-0XKlv7dyxP2xB9VM27tSdxnifIuEd3C0t8jyfHiWlcQ7BHz-TQM72KvVGOk4f4k9gR5Dn8xW_I64LIAwHlt-5GHCObduspJj2wYsSjRs2WmZKwvmpUfYWcEehm1/s72-c/hola-mundo-en-dev-c%252B%252B.PNG" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Santiago de Guayaquil, Ecuador</georss:featurename><georss:point>-2.1833333 -79.8833333</georss:point><georss:box>-2.4255633000000003 -80.0774823 -1.9411033000000002 -79.689184300000008</georss:box></entry><entry><id>tag:blogger.com,1999:blog-4545188702493747232.post-6363435082011394381</id><published>2011-09-23T15:36:00.001-05:00</published><updated>2011-09-23T15:38:48.914-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="hola"/><category scheme="http://www.blogger.com/atom/ns#" term="mundo"/><category scheme="http://www.blogger.com/atom/ns#" term="parte"/><category scheme="http://www.blogger.com/atom/ns#" term="primer"/><category scheme="http://www.blogger.com/atom/ns#" term="programa"/><category scheme="http://www.blogger.com/atom/ns#" term="uno"/><title type='text'>El Primer Programa: Hola Mundo (Parte I)</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqk_VD7TCSD46gACphOjC7vLOLqRwsoiIFxE55AL61yu3tldyfMc1yPr5DxLr3F4j2_X7Is53_dy1JbLIW4ib3CIBx9OQP_NHcrOn8upuHkW4MyNpn-tz9TNsbHhone17EsuQu7B4KPetH/s1600/hola-mundo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;Hola Mundo en c ejecutado&quot; border=&quot;0&quot; height=&quot;201&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqk_VD7TCSD46gACphOjC7vLOLqRwsoiIFxE55AL61yu3tldyfMc1yPr5DxLr3F4j2_X7Is53_dy1JbLIW4ib3CIBx9OQP_NHcrOn8upuHkW4MyNpn-tz9TNsbHhone17EsuQu7B4KPetH/s400/hola-mundo.JPG&quot; title=&quot;Hola Mundo&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Con &lt;i&gt;&quot;mucha originalidad&quot;&lt;/i&gt; (Estoy siendo&amp;nbsp;sarcástico) vamos a crear nuestro primer programa: hola mundo. Nadie puede seguir adelante en la&amp;nbsp;programación&amp;nbsp;sin antes haber hecho este programa.&amp;nbsp;Aquí&amp;nbsp;está:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; color: #6aa84f; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;int&lt;/b&gt; main()&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; printf(&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&quot;Hola mundo\n&quot;&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;b&gt;return&lt;/b&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #c27ba0;&quot;&gt;0&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Nota: Hay mucha gente que programa en Windows que se queja de que cuando ejecuta el programa no pasa nada, no es&amp;nbsp;así, al ejecutarse el programa se cierra&amp;nbsp;automáticamente. Para evitar esto agreguen estas&amp;nbsp;líneas:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; color: #6aa84f; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; color: #6aa84f; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Despues de: &lt;i&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;y:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;system(&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&quot;pause&quot;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;antes de:&amp;nbsp;&lt;i&gt;return 0;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Es decir que el&amp;nbsp;código&amp;nbsp;quedaría&amp;nbsp;así:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; color: #6aa84f; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; color: #6aa84f; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;int&lt;/b&gt;&amp;nbsp;main()&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; printf(&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&quot;Hola mundo\n&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; system(&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&quot;pause&quot;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;return&lt;/b&gt;&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #a64d79;&quot;&gt;0&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;¿Fácil no? Este programa lo único que hace es sacar por pantalla el mensaje:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: cyan; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;i&gt;Hola Mundo&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Ahora voy a decirles que hace cada&amp;nbsp;línea&amp;nbsp;del programa:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; color: #6aa84f;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; color: #6aa84f; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #include &amp;lt;stdlib.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;i&gt;#include&lt;/i&gt; es lo que se llama una directiva. Le dice al compilador que incluya un archivo. Cuando el compilador se encuentra con esto lo sustituye con el archivo indicado. En el caso de la primera&amp;nbsp;línea&amp;nbsp;es el archivo &lt;i&gt;stdio.h&lt;/i&gt; que es donde está definida la función &lt;i&gt;printf&lt;/i&gt;, que veremos luego y en el caso de la segunda&amp;nbsp;línea&amp;nbsp;es el archivo &lt;i&gt;stdlib.h&lt;/i&gt; que es donde&amp;nbsp;está&amp;nbsp;definida la&amp;nbsp;función&amp;nbsp;system, que&amp;nbsp;también&amp;nbsp;veremos luego.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;int&lt;/b&gt; main ()&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Es la función principal del programa. Todos los programas de C deben tener una función llamada main. Es la que primero se ejecuta. El &lt;i&gt;int&lt;/i&gt; (viene de &lt;i&gt;Integer=Entero&lt;/i&gt;) que tiene al principio significa que cuando la función main acabe devolverá un número entero. Este valor se suele usar para saber cómo ha terminado el programa. Normalmente este valor será 0 si todo ha ido bien, o un valor distinto si se ha producido algún error (pero esto lo decidimos nosotros, ya lo veremos). De esta forma si nuestro programa se ejecuta desde otro, el programa &#39;padre&#39; sabe cómo ha finalizado, si ha habido errores o no.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Se puede usar la definición &lt;i&gt;void main ()&lt;/i&gt;, que no necesita devolver ningún valor, pero se recomienda la forma con &lt;i&gt;int&lt;/i&gt; que es más correcta.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Son las llaves que indican el comienzo de una función.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #3d85c6; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;/*Aquí va el cuerpo del programa*/&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Esto es un comentario, no se ejecuta. Sirve para describir el programa. Conviene acostumbrarse a comentar los programas. Un comentario puede ocupar más de una línea. Por ejemplo el comentario:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3d85c6; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;/*Este es un comentario&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3d85c6; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;que ocupa dos filas*/&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Es perfectamente válido.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;printf(&quot;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;Hola mundo\n&lt;/span&gt;&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Aquí es donde por fin el programa hace algo que podemos ver al ejecutarlo. La función &lt;i&gt;printf&lt;/i&gt; muestra un mensaje por la pantalla. Al final del mensaje &lt;i&gt;Hola mundo&lt;/i&gt; aparece el símbolo &lt;i&gt;\n&lt;/i&gt; este hace que después de imprimir el mensaje se pase a la línea siguiente.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;system (&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&quot;pause&quot;&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Esto por lo general se lo usa en Windows. Esto lo que hace es que cuando se ejecute el programa, este no se cierre. Sin esto, el programa se&amp;nbsp;ejecutaría&amp;nbsp;y se&amp;nbsp;cerraría&amp;nbsp;al instante sin dejarnos ver el resultado.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow;&quot;&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #a64d79;&quot;&gt;0&lt;/span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Como ya les dije el programa al finalizar devuelve un valor entero. La forma de hacer que el programa devuelva un 0 es usando &lt;i&gt;return&lt;/i&gt;. Esta línea significa &lt;i&gt;finaliza la función main y haz que devuelva un 0&lt;/i&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;... y cerramos llaves con lo que termina el programa. Todos los programas finalizan cuando se llega al final de la función &lt;i&gt;main&lt;/i&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Bien, esta&amp;nbsp;recién&amp;nbsp;esta la primera parte, en un siguiente post, les&amp;nbsp;pondré&amp;nbsp;unos ejercicios y mas.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Si tienen alguna duda, diganmela en los comentarios. Salu2.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://prolengc.blogspot.com/feeds/6363435082011394381/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://prolengc.blogspot.com/2011/09/el-primer-programa-hola-mundo-parte-i.html#comment-form' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4545188702493747232/posts/default/6363435082011394381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4545188702493747232/posts/default/6363435082011394381'/><link rel='alternate' type='text/html' href='http://prolengc.blogspot.com/2011/09/el-primer-programa-hola-mundo-parte-i.html' title='El Primer Programa: Hola Mundo (Parte I)'/><author><name>Xavier Figueroa</name><uri>http://www.blogger.com/profile/13533895757696407305</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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqk_VD7TCSD46gACphOjC7vLOLqRwsoiIFxE55AL61yu3tldyfMc1yPr5DxLr3F4j2_X7Is53_dy1JbLIW4ib3CIBx9OQP_NHcrOn8upuHkW4MyNpn-tz9TNsbHhone17EsuQu7B4KPetH/s72-c/hola-mundo.JPG" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Santiago de Guayaquil, Ecuador</georss:featurename><georss:point>-2.1833333 -79.8833333</georss:point><georss:box>-2.4255633000000003 -80.0774823 -1.9411033000000002 -79.689184300000008</georss:box></entry><entry><id>tag:blogger.com,1999:blog-4545188702493747232.post-7023860384216946039</id><published>2011-09-22T15:05:00.004-05:00</published><updated>2011-09-22T23:38:27.872-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c"/><category scheme="http://www.blogger.com/atom/ns#" term="compilador"/><category scheme="http://www.blogger.com/atom/ns#" term="editor"/><category scheme="http://www.blogger.com/atom/ns#" term="introduccion"/><category scheme="http://www.blogger.com/atom/ns#" term="peculiaridades"/><category scheme="http://www.blogger.com/atom/ns#" term="programacion"/><title type='text'>Programación En C</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, sans-serif;&quot;&gt;&lt;b&gt;INTRODUCCIÓN&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Arial, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjG0HWThZRzwSKpCivqOHqNzWaYHurHT4YlNk5M_0gDTq9yFvNhyRUV7cKG7LMcEmB5PDbCRVTNkWJoNnDsmfncFVr0RSE4bFvB05eaaCD2VITwKb4t3hU5DJb-TlNSI7HCJdAs9q9Sdrm8/s1600/Programacion-En-C.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;codigo fuente lenguaje c&quot; border=&quot;0&quot; height=&quot;187&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjG0HWThZRzwSKpCivqOHqNzWaYHurHT4YlNk5M_0gDTq9yFvNhyRUV7cKG7LMcEmB5PDbCRVTNkWJoNnDsmfncFVr0RSE4bFvB05eaaCD2VITwKb4t3hU5DJb-TlNSI7HCJdAs9q9Sdrm8/s320/Programacion-En-C.JPG&quot; title=&quot;Codigo Fuente&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif;&quot;&gt;El lenguaje C es uno de los mejores que hay hoy en día. Algunos dicen que es vieja y que ya nadie lo usa. No sé si tendrá futuro pero está claro que presente si tiene. Como ya les dije, el sistema operativo Linux esta desarrollado en C en su totalidad. Así que creo que no esta mal aprender&amp;nbsp;programación&amp;nbsp;en C.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Arial, sans-serif; line-height: normal;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: Arial, sans-serif;&quot;&gt;No hay que confundir C con C++, no son lo mismo. Se podría decir que C++ es una extensión de C. Para empezar en C++ conviene aprender bien C.&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Arial, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: Arial, sans-serif;&quot;&gt;Existen otros lenguajes como Visual Basic que son muy sencillos de aprender y de utilizar. Nos dan casi todo hecho. Pero cuando queremos hacer algo complicado o que sea rápido debemos recurrir a otros lenguajes (C++, delphi,...).&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Arial, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: Arial, sans-serif;&quot;&gt;&lt;b&gt;PECULIARIDADES DE C&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Arial, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: Arial, sans-serif;&quot;&gt;Una de las cosas importantes de C que debes recordar es que es sensible a las mayúsculas. Es decir que para C no es lo mismo escribir Printf que printf.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: Arial, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;b&gt;COMPILADORES DE C&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgntJwiHkTekILIzLzN-05qeITh2aUTKtci5JMnKMRVu-JbdoDJ86lylNpqzGChD1bg_1wA3vkRRQYQCM0MAS-IDzrXq5LhHZM_KxzMxTCbrF3Fj9z9UzG_QeLxde1aJ97VtQ8cEoxTZ2Lh/s1600/Dev-C%252B%252B-logo.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;logo de Dev-C++&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgntJwiHkTekILIzLzN-05qeITh2aUTKtci5JMnKMRVu-JbdoDJ86lylNpqzGChD1bg_1wA3vkRRQYQCM0MAS-IDzrXq5LhHZM_KxzMxTCbrF3Fj9z9UzG_QeLxde1aJ97VtQ8cEoxTZ2Lh/s1600/Dev-C%252B%252B-logo.jpg&quot; title=&quot;Dev-C++&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: Arial, sans-serif;&quot;&gt;Un compilador es un programa que convierte nuestro código fuente en un programa ejecutable. El ordenador trabaja con 0 y 1. Si escribiéramos un programa en el lenguaje del ordenador nos volveríamos locos. Para eso están lenguajes como el C. Nos permiten escribir un programa de &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black;&quot;&gt;manera que sea fácil entenderlo por una persona (el código fuente). Luego es el compilador el que se encarga de convertirlo al complicado idioma de un ordenador.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;En la práctica a la hora de crear un programa nosotros escribimos el código fuente, en nuestro caso en C, que normalmente será un fichero de texto normal y corriente que contiene las instrucciones de nuestro programa. Luego se lo pasamos al compilador y este se encarga de convertirlo en un programa.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Si tenemos el código fuente podemos modificar el programa tantas veces como queramos, solo lo compilamos otra vez y ya.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: Arial, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: Arial, sans-serif;&quot;&gt;Para programar en Windows te recomiendo usar el Dev-C++, de fácil instalación y manejo. Yo lo uso y me va de maravilla. Puedes buscar mas compiladores en la web, hay muchos y la mayoría son buenos. El GNU C (gcc.gnu.org) es para programar en Linux. La verdad, yo tengo Windows XP y por esa razón no he usado el GNU C pero he visto algunos comentarios en foros, etc, y dicen que es el mejor compilador C que existe.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: Arial, sans-serif;&quot;&gt;&lt;b&gt;EL EDITOR&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWiEjvuqe1QvqOMAVy0rGBE05rxTLss4IVQXKS19HkjODTongw9WLf9Rxg2dSygZkFP4sj7PygI59AdPIo-LGu8uW6IVYxxQonOffv3caLXgSt6vtjWgZrSPvG7CTZUQYf6nmd_Th5ZWke/s1600/Bloc-de-notas-icono.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img alt=&quot;icono bloc de notas&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWiEjvuqe1QvqOMAVy0rGBE05rxTLss4IVQXKS19HkjODTongw9WLf9Rxg2dSygZkFP4sj7PygI59AdPIo-LGu8uW6IVYxxQonOffv3caLXgSt6vtjWgZrSPvG7CTZUQYf6nmd_Th5ZWke/s1600/Bloc-de-notas-icono.jpg&quot; title=&quot;Bloc De Notas&quot; /&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif;&quot;&gt;El compilador es el programa que transforma nuestro código fuente en un programa ejecutable. Pero para escribir nuestro programa, necesitaremos un editor. Puede ser cualquier editor. El simple Bloc De Notas de Windows puede servir, pero no trae ninguna función especial como son la de depurar (corregir errores), etc. Por lo que la mayoría de los compiladores ya vienen con un editor, es el caso de Visual C++, Turbo C++, etc.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: Arial, sans-serif;&quot;&gt;Si nuestro compilador no trae editor la solución más simple es descargar uno, por ejemplo RHIDE, un programa muy útil que automatiza muchas de las tareas del programador (del estilo del Turbo C y Turbo Pascal). Si queremos una herramienta muy avanzada podemos usar Emacs, que es un editor muy potente, aunque para algunos puede parecer muy complicado.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: Arial, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: Arial, sans-serif;&quot;&gt;Esto es solo una parte acerca de lo que tienes que saber de C, en un siguiente post pon&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black;&quot;&gt;dr&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; line-height: 21px;&quot;&gt;é&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: Arial, sans-serif;&quot;&gt;&amp;nbsp;como hacer un sencillo programa en C.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://prolengc.blogspot.com/feeds/7023860384216946039/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://prolengc.blogspot.com/2011/09/programacion-en-c.html#comment-form' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4545188702493747232/posts/default/7023860384216946039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4545188702493747232/posts/default/7023860384216946039'/><link rel='alternate' type='text/html' href='http://prolengc.blogspot.com/2011/09/programacion-en-c.html' title='Programación En C'/><author><name>Xavier Figueroa</name><uri>http://www.blogger.com/profile/13533895757696407305</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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjG0HWThZRzwSKpCivqOHqNzWaYHurHT4YlNk5M_0gDTq9yFvNhyRUV7cKG7LMcEmB5PDbCRVTNkWJoNnDsmfncFVr0RSE4bFvB05eaaCD2VITwKb4t3hU5DJb-TlNSI7HCJdAs9q9Sdrm8/s72-c/Programacion-En-C.JPG" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Santiago de Guayaquil, Ecuador</georss:featurename><georss:point>-2.1833333 -79.8833333</georss:point><georss:box>-2.4255633000000003 -80.0774823 -1.9411033000000002 -79.689184300000008</georss:box></entry><entry><id>tag:blogger.com,1999:blog-4545188702493747232.post-899728995756720273</id><published>2011-09-22T14:14:00.003-05:00</published><updated>2011-09-22T23:38:04.041-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c"/><category scheme="http://www.blogger.com/atom/ns#" term="lenguaje"/><category scheme="http://www.blogger.com/atom/ns#" term="programacion"/><category scheme="http://www.blogger.com/atom/ns#" term="ProLengC"/><title type='text'>ProLengC</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Hola, bien, en este blog lo he creado porque&amp;nbsp;&lt;span style=&quot;line-height: 115%;&quot;&gt;ú&lt;/span&gt;ltimamente me esta encantando la idea de programar, de crear programas y todo eso.&amp;nbsp;Este blog se centra exclusivamente al lenguaje de&amp;nbsp;programación&amp;nbsp;C.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjncpreiNpLSrlFZ2zjEvvNvfkdvn9uTb4QiToeJq9xLFDLhyphenhyphenabgE84KwVW1HPPdOFY6LSaJI3N36sxG2B6ZUL4smqUCYJz2qnQfJnqPzqdWsypkXfoPearERoTSvOZ6ddqW78NHCBvwruL/s1600/source-c-icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;c sobre hoja logo de prolangc&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjncpreiNpLSrlFZ2zjEvvNvfkdvn9uTb4QiToeJq9xLFDLhyphenhyphenabgE84KwVW1HPPdOFY6LSaJI3N36sxG2B6ZUL4smqUCYJz2qnQfJnqPzqdWsypkXfoPearERoTSvOZ6ddqW78NHCBvwruL/s1600/source-c-icon.png&quot; title=&quot;ProLangC&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Como muchos de los que están leyendo esto, yo también soy un completo y rotundo principiante así que juntos iremos aprendiendo mas acerca de este increíble lenguaje de programacion, que algunos dicen que ya no se usa, pero, me interese en este lenguaje porque, el grandioso sistema operativo Linux esta desarrollado completamente en C y un poco de C++ y no creo que nos&amp;nbsp;haría&amp;nbsp;mal aprenderlo.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;He encontrado en Google muchos curso&amp;nbsp;básicos&amp;nbsp;de&amp;nbsp;programación&amp;nbsp;en C, voy a tratar de resumir lo mejor de todos y semana a semana los&amp;nbsp;iré&amp;nbsp;posteando&amp;nbsp;aquí.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Si se me ocurre aprender otros lenguajes, probablemente&amp;nbsp;también&amp;nbsp;los&amp;nbsp;pondré&amp;nbsp;aquí.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Bien eso es todo, me despido, salu2.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://prolengc.blogspot.com/feeds/899728995756720273/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://prolengc.blogspot.com/2011/09/prolengc.html#comment-form' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4545188702493747232/posts/default/899728995756720273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4545188702493747232/posts/default/899728995756720273'/><link rel='alternate' type='text/html' href='http://prolengc.blogspot.com/2011/09/prolengc.html' title='ProLengC'/><author><name>Xavier Figueroa</name><uri>http://www.blogger.com/profile/13533895757696407305</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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjncpreiNpLSrlFZ2zjEvvNvfkdvn9uTb4QiToeJq9xLFDLhyphenhyphenabgE84KwVW1HPPdOFY6LSaJI3N36sxG2B6ZUL4smqUCYJz2qnQfJnqPzqdWsypkXfoPearERoTSvOZ6ddqW78NHCBvwruL/s72-c/source-c-icon.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Santiago de Guayaquil, Ecuador</georss:featurename><georss:point>-2.1833333 -79.8833333</georss:point><georss:box>-2.4255633000000003 -80.0774823 -1.9411033000000002 -79.689184300000008</georss:box></entry></feed>