First commit 20/03/1997
This commit is contained in:
16
PROBAR.CPP
Normal file
16
PROBAR.CPP
Normal file
@ -0,0 +1,16 @@
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
void main(void)
|
||||
{
|
||||
char Nombre2[] = "Esto es una prueba";
|
||||
//"Prueba";
|
||||
char Nombre;
|
||||
|
||||
strcpy( Nombre , Nombre2 );
|
||||
char *p; p = Nombre2;
|
||||
while ( *(p++) != '\0' ); while ( *(p--) != ' ' || p != Nombre2 ); *p = '\0';
|
||||
strcpy( Apellido1, p+1);
|
||||
|
||||
printf( "Nombre: %s \nApellido: %s\n\n", Nombre, Apellido1 );
|
||||
}
|
Reference in New Issue
Block a user