<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hola ale, yo pobe tu programa usando la biblioteca #include <conio.c> y poner main(void)<BR>
me anda tu programa<BR>
aqui te lo adjunto<BR>
 <BR>
#include <stdio.h><BR>#include <stdlib.h><BR>#include <string.h><BR>#include<conio.c><BR>
void insertar(char cadena[50], char s[50],int cuantos,int inicio);<BR>
<BR>main(void)<BR>{<BR>
    int inicio,cuantos;<BR>
    char cadena[50],s[50];<BR>
<BR>    clrscr();<BR>    printf("\n DAME EL NOMBRE DE LA CADENA : ");<BR>    gets(cadena);<BR>    printf("\n DAME LA POSICION DEL ORIGEN : ");<BR>    scanf("%d",&inicio);<BR>
    printf(" \n AHORA DAME EL NUMERO QUE DESEAS OBTENER :" );<BR>    scanf("%d",&cuantos);<BR>
    insertar (cadena,s,cuantos,inicio);<BR>
    printf("\n\n EL RESULTADO DE LA CADENA ES : %s",s);<BR>   getch();<BR>}<BR>    void insertar(char* cad,char* i,int cuantos, int inicio)<BR>
{<BR>
     strcpy(i," auxiliar");<BR>
     cad = cad+(inicio-1);<BR>     for (;cuantos > 0;cad++,i++, cuantos--)<BR>    *i=*cad;<BR>
      }<BR><BR> besos<BR>
laugaby<BR>
lista con clase c<BR>
 <BR>
<HR id=stopSpelling>
From: aleannsam@hotmail.com<BR>To: cconclase@listas.conclase.net<BR>Date: Wed, 7 Oct 2009 02:38:28 +0000<BR>Subject: [C con Clase] Ayuda sobre error con clrscr y getch<BR><BR>
<STYLE>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</STYLE>
Hola que tal buenas noches tengo un problema <BR>me dejaron hacer un programa <BR>que sustraiga de una cadena una subcadena para contar numero y estrarer <BR>ya me sale pero el problema que tengo es k me salen 2 errores del clrscr y del getch <BR>alguien me podria decir por que me esta saliendo el error<BR>les anexo el programa<BR>saludos y gracias<BR><BR><BR><BR>#include <stdio.h><BR>#include <stdlib.h><BR>#include <string.h><BR><BR>void insertar(char cadena[50], char s[50],int cuantos,int inicio);<BR><BR><BR>void main()<BR><BR>{<BR><BR>    int inicio,cuantos;<BR><BR>    char cadena[50],s[50];<BR><BR><BR>    clrscr();<BR>    printf("\n DAME EL NOMBRE DE LA CADENA : ");<BR>    gets(cadena);<BR>    printf("\n DAME LA POSICION DEL ORIGEN : ");<BR>    scanf("%d",&inicio);<BR><BR>    printf(" \n AHORA DAME EL NUMERO QUE DESEAS OBTENER :" );<BR>    scanf("%d",&cuantos);<BR><BR>    insertar (cadena,s,cuantos,inicio);<BR><BR>    printf("\n\n EL RESULTADO DE LA CADENA ES : %s",s);<BR>   getch();<BR>}<BR>    void insertar(char* cad,char* i,int cuantos, int inicio)<BR><BR>{<BR><BR>     strcpy(i," auxiliar");<BR><BR>     cad = cad+(inicio-1);<BR>     for (;cuantos > 0;cad++,i++, cuantos--)<BR>    *i=*cad;<BR><BR>      }<BR><BR>
<HR>
Conoce el reto de esta semana y <A href="http://www.actualizatuperfil.com.mx/">y gana con Perfil de Windows Live</A>                                        <br /><hr />¿Aún no lo descargaste? Hacé clic aquí  <a href='http://www.ie8.msn.com/microsoft/internet-explorer-8/es-ar/ie8.aspx' target='_new'>Internet Explorer 8 especial para MSN - ¡Gratis!</a></body>
</html>