<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Yo también poseo un MacBook Pro en la versión 4,1. Te comento. Con el segundo CD del SO te vienen todas las herramientas para desarrollo de aplicaciones.<div>Xcode no es un compilador, es un IDE, es decir un programa con ventanitas y tal que facilita el desarrollo de aplicaciones. En Xcode se puede trabajar con muchos lenguajes. Al instalar Xcode se instala gcc y otros dos compiladores más que no los comento porque son más complejos y no los domino.</div><div><br></div><div>Como veo que eres novato en esto de la programación te recomiendo que no empieces con Xcode porque tiene muchas opciones  y te puedes liar.</div><div>Para hacer el curso de C++ te recomiendo que uses un programa más pequeñito, un "bloc de notas vitaminado". Se llama Fraise, web: <a href="http://www.fraiseapp.com">www.fraiseapp.com</a>. he contribuido en la traducción al castellano de los menus.</div><div><br></div><div>Te comento un ejemplo sencillo:</div><div>Abres Fraise</div><div>copias este código:</div><div><br></div><div><span class="Apple-style-span" style="font-family: 'Courier New', Arial, sans-serif; color: rgb(0, 0, 128); font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">#include <iostream><br>using namespace std;<br>int main()<br>{</span></div><div><span class="Apple-style-span" style="font-family: 'Courier New', Arial, sans-serif; color: rgb(0, 0, 128); font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><br>  cout << "Hello World!" << endl;   </span></div><div><span class="Apple-style-span" style="font-family: 'Courier New', Arial, sans-serif; color: rgb(0, 0, 128); font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">cout << "Bienvenido a C++ " << endl; </span></div><div><span class="Apple-style-span" style="font-family: 'Courier New', Arial, sans-serif; color: rgb(0, 0, 128); font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><br></span></div><div><span class="Apple-style-span" style="font-family: 'Courier New', Arial, sans-serif; color: rgb(0, 0, 128); font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">return 0;</span></div><div><span class="Apple-style-span" style="font-family: 'Courier New', Arial, sans-serif; color: rgb(0, 0, 128); font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">}</span></div><div><span class="Apple-style-span" style="font-family: 'Courier New', Arial, sans-serif; color: rgb(0, 0, 128); font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><br></span></div><div><span class="Apple-style-span" style="font-family: 'Courier New', Arial, sans-serif; color: rgb(0, 0, 128); font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">Archivo guardar o comando S.Por ejemplo, hola.cpp (.cpp extensión archivos c++).Guardarlo en el escritorio.</span></div><div><span class="Apple-style-span" style="font-family: 'Courier New', Arial, sans-serif; color: rgb(0, 0, 128); font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><br></span></div><div><span class="Apple-style-span" style="font-family: 'Courier New', Arial, sans-serif; color: rgb(0, 0, 128); font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">Ahora abre la aplicacion llamada terminal.</span></div><div><span class="Apple-style-span" style="font-family: 'Courier New', Arial, sans-serif; color: rgb(0, 0, 128); font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">Introduce:</span></div><div><span class="Apple-style-span" style="font-family: 'Courier New', Arial, sans-serif; color: rgb(0, 0, 128); font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">cd Escritorio (con que escribas cd Es y pulses tabulador se autocompletara).</span></div><div><span class="Apple-style-span" style="font-family: 'Courier New', Arial, sans-serif; color: rgb(0, 0, 128); font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">y ahora vamos a compilar:</span></div><div><span class="Apple-style-span" style="font-family: 'Courier New', Arial, sans-serif; color: rgb(0, 0, 128); font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">como es C++ usamos G++, si fuera C usaríamos GCC.</span></div><div><font class="Apple-style-span" color="#000080" face="'Courier New', Arial, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">g++ nombre_programa.cpp -o nombre_ejecutable</span></font></div><div><font class="Apple-style-span" color="#000080" face="'Courier New', Arial, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">g++ hola.cpp -o ejemplo1</span></font></div><div><font class="Apple-style-span" color="#000080" face="'Courier New', Arial, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br></span></font></div><div><font class="Apple-style-span" color="#000080" face="'Courier New', Arial, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">ahora para ejecutar el ejemplo escribe en el terminal.</span></font></div><div><font class="Apple-style-span" color="#000080" face="'Courier New', Arial, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">./ejemplo</span></font></div><div><font class="Apple-style-span" color="#000080" face="'Courier New', Arial, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">y veras que se ejecuta el programa.</span></font></div><div><font class="Apple-style-span" color="#000080" face="'Courier New', Arial, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br></span></font></div><div><font class="Apple-style-span" color="#000080" face="'Courier New', Arial, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br></span></font></div><div><font class="Apple-style-span" color="#000080" face="'Courier New', Arial, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">Un saludo</span></font></div><div><div><div>On 08/06/2010, at 9:00, Rafael Barrios Sanchez wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Buenas. Tengo un<span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 11px; ">MacBook Pro</span><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 184.2px; text-indent: -184.2px; font: normal normal normal 11px/normal 'Lucida Grande'; ">  Identificador del modelo:<span class="Apple-tab-span" style="white-space:pre"> </span>MacBookPro5,5</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 184.2px; text-indent: -184.2px; font: normal normal normal 11px/normal 'Lucida Grande'; ">  Nombre del procesador:<span class="Apple-tab-span" style="white-space:pre">   </span>Intel Core 2 Duo</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 184.2px; text-indent: -184.2px; font: normal normal normal 11px/normal 'Lucida Grande'; ">  Velocidad del procesador:<span class="Apple-tab-span" style="white-space:pre">     </span>2,53 GHz</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 184.2px; text-indent: -184.2px; font: normal normal normal 11px/normal 'Lucida Grande'; ">  Número de procesadores:<span class="Apple-tab-span" style="white-space:pre">       </span>1</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 184.2px; text-indent: -184.2px; font: normal normal normal 11px/normal 'Lucida Grande'; ">  Número total de núcleos:<span class="Apple-tab-span" style="white-space:pre">     </span>2</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 184.2px; text-indent: -184.2px; font: normal normal normal 11px/normal 'Lucida Grande'; ">  Caché de nivel 2:<span class="Apple-tab-span" style="white-space:pre">    </span>3 MB</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 184.2px; text-indent: -184.2px; font: normal normal normal 11px/normal 'Lucida Grande'; ">  Memoria:<span class="Apple-tab-span" style="white-space:pre">  </span>4 GB</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 184.2px; text-indent: -184.2px; font: normal normal normal 11px/normal 'Lucida Grande'; ">  Velocidad del bus:<span class="Apple-tab-span" style="white-space:pre">        </span>1,07 GHz. Y me gustaría saber si XCODE lo puedo utilizar para hacer este curso o tendría que instalar un compilador que funcione con Mac.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 184.2px; text-indent: -184.2px; font: normal normal normal 11px/normal 'Lucida Grande'; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 184.2px; text-indent: -184.2px; font: normal normal normal 11px/normal 'Lucida Grande'; ">Gracias. Saludos.</div></div>_______________________________________________<br>Lista de correo Cconclase <a href="mailto:Cconclase@listas.conclase.net">Cconclase@listas.conclase.net</a><br><a href="http://listas.conclase.net/mailman/listinfo/cconclase_listas.conclase.net">http://listas.conclase.net/mailman/listinfo/cconclase_listas.conclase.net</a><br>Bajas: <a href="http://listas.conclase.net/index.php?gid=2&mnu=FAQ">http://listas.conclase.net/index.php?gid=2&mnu=FAQ</a></blockquote></div><br></div></body></html>