Red de conocimiento informático - Problemas con los teléfonos móviles - Programación de procesos

Programación de procesos

1.

¿#Contiene? & ltstdio.h & gt

#¿Contiene? & ltstring.h & gt

#¿Contiene? & ltassert.h & gt

char*? cat(char*?des?char*?src)

{

char*? p;

assert(des?!=?NULL);

Assert(src?!=?NULL);

p? =?Des? +?strlen(des);

¿Cuándo? (*p++?=?* src++);

¿Regresión? destino

}

int? Señor()

{

¿Ciel? T1[100]? =?"Computadora";

¿Carácter? t2[100]? =?"Idioma";

cat(s1,?S2);

printf("%s\n ",s 1);

¿Regresar? 0;

}2.

¿#Contiene? & ltstdio.h & gt

#¿Contiene? & ltctype.h & gt

int? Señor()

{

¿Ciel? s[]? =?"C? ¿Sí? ¿A? ¿General? ¿Propósito? ¿Procedimental? ¿Imperativo? ¿Computadora? \

¿Programación? ¿Lenguaje? ¿Desarrollado? ¿En? 1972? ¿Por quién? Dennis Ritchie. ¿Dónde? \

¿Teléfono? ¿Para qué? ";

int? arriba,? Bajo,? número,? espacio,? Punto;

carácter*? ¿pag? =?s;

¿Arriba? =?Bajo? =?núm? =?Espacio? =?punto? =?0;

¿Cuándo? (*p)

{

¿Y si? (isupper(*p))

up++;

¿Y si? ¿si? (islower(*p))

Bajo++;

¿Y si? ¿si? (isdigit(*p))

num++;

¿Y si? ¿si? ('?'?==?*p)

espacio++;

¿Y si? ¿si? (','?==?*p)

Punto++;

p++;

}

Printf("Letra mayúscula: ? %d\n ", arriba);

Printf("Letra minúscula:?%d\n ", baja);

Printf("Número:?%d \n ", num);

Printf("Espacio:?%d\n ", espacio);

Printf("Coma:?%d\n ", punto) ;

¿Regresar? 0;

}?

3.

#Contiene? & ltstdio.h & gt

#¿Contiene? <assert.h>char*? copiar(char*?des?char*?src)

{

char*? ¿pag? =?des

assert(des?!=?NULL);

Assert(src?!=?NULL);

¿Cuándo? (*p++?=?* src++);

¿Regresión? destino

}int? Señor()

{

¿Ciel? s 1[100];

¿Carácter? s2[]? =?" abcdefg ";

Copiar(s1,?S2);

printf("%s\n ",s 1);

¿Regresión? 0;

}