-
Entradas recientes
Blog Stats
- 888.698 hits
Enlaces
Archivos
- enero 2024
- diciembre 2023
- noviembre 2023
- octubre 2023
- septiembre 2023
- May 2023
- enero 2023
- diciembre 2022
- noviembre 2022
- octubre 2022
- febrero 2022
- enero 2022
- diciembre 2021
- noviembre 2021
- octubre 2021
- septiembre 2021
- enero 2021
- diciembre 2020
- noviembre 2020
- octubre 2020
- febrero 2020
- enero 2020
- diciembre 2019
- noviembre 2019
- octubre 2019
- septiembre 2019
- febrero 2019
- enero 2019
- diciembre 2018
- noviembre 2018
- octubre 2018
- septiembre 2018
- febrero 2018
- enero 2018
- diciembre 2017
- noviembre 2017
- septiembre 2017
- febrero 2017
- enero 2017
- diciembre 2016
- noviembre 2016
- septiembre 2016
- febrero 2016
- enero 2016
- diciembre 2015
- noviembre 2015
- octubre 2015
- febrero 2015
- enero 2015
- diciembre 2014
- noviembre 2014
- octubre 2014
- septiembre 2014
- febrero 2014
- enero 2014
- diciembre 2013
- noviembre 2013
- octubre 2013
- septiembre 2013
- febrero 2013
- enero 2013
- diciembre 2012
- noviembre 2012
- octubre 2012
- septiembre 2012
- febrero 2012
- enero 2012
- diciembre 2011
- noviembre 2011
- octubre 2011
- septiembre 2011
- febrero 2011
- enero 2011
- diciembre 2010
- noviembre 2010
- octubre 2010
- septiembre 2010
- julio 2010
- junio 2010
- May 2010
- abril 2010
- marzo 2010
- febrero 2010
- enero 2010
- diciembre 2009
- noviembre 2009
- octubre 2009
- septiembre 2009
- julio 2009
- junio 2009
- May 2009
- abril 2009
- marzo 2009
- febrero 2009
- enero 2009
- diciembre 2008
- noviembre 2008
- octubre 2008
- septiembre 2008
- junio 2008
- May 2008
- abril 2008
- marzo 2008
- febrero 2008
- enero 2008
- diciembre 2007
- noviembre 2007
- octubre 2007
Categorías
Archivo mensual: junio 2010
Análisis de un texto: vocales, espacios y saltos de línea
Pilar Masoli /* Este programa localiza en un fichero de tipo *.txt las vocales, los espacios en blanco y los saltos de línea y los escribe en otro fichero de tipo .txt*/ #include <stdio.h>#include <stdlib.h> int main (){ FILE *pf, … Seguir leyendo
Publicado en programacion
1 Comentario
Invertir cadena
Pilar Masoli /* Este programa lee una cadena de caracteres y la devuelve invertida*/ #include <stdio.h>#include <stdlib.h>#include <string.h> char* invertir (char* cad); int main (){char cadena[1000], *q; printf ("n Dame la palabra: ");gets(cadena); q=invertir(cadena); puts(q); system ("PAUSE"); … Seguir leyendo
Publicado en programacion
1 Comentario
Serie geométrica: escribir datos
Pilar Masoli /* Este programa calcula los primeros 10 términos de una progresión geométrica, siempre que eston sean menores que 10000 */ #include <stdio.h>#include <stdlib.h> int main (){ float a0, r; int i; printf ("Dame el primer termino de … Seguir leyendo
Publicado en programacion
Deja un comentario
Serie aritmética: escribir datos
Pilar Masoli /* Este programa calcula los primeros 10 términos de una progresion aritmética, siempre que eston sean menores que 10000 */ #include <stdio.h>#include <stdlib.h> int main (){ float a0, d; int i; printf ("Dame el primer termino de … Seguir leyendo
Publicado en programacion
1 Comentario
Biblioteca: creación y búsqueda de información
Pilar Masoli /* Este programa permite crear una biblioteca y buscar libros insertados a partir del autor. No tiene memoria, por lo tanto cuando se cierra la ejecución se pierden los datos insertados. */ #include <stdio.h>#include <stdlib.h>#include <string.h>#define NUM 100 … Seguir leyendo
Publicado en programacion
1 Comentario
Ficheros binarios: Uso de las funciones fread() y fwrite()
Toño Sánchez y Blanca Simón // USO DE LAS FUNCIONES fread y fwrite CON FICHEROS BINARIOS #include <stdio.h> #include <stdlib.h> int main () { FILE *pf; int i; int v1[6]={1,3,5,7,9,11}; int v2[6];pf = fopen («Datos.dat», «w+b»); fwrite (v1, sizeof(int),6,pf); rewind … Seguir leyendo
Publicado en Informática e Internet
3 comentarios
Puntos tridimensionales (versión 2)
Pilar Masoli #include <stdio.h>#include <stdlib.h>#include <math.h> struct punto{ float x; float y; float z;}; typedef struct punto Punto; void leer_punto (Punto*);float prod_escalar (Punto*, Punto*);float distancia (Punto*, Punto*); int main(){Punto *q, *r;float dist, prod; q=(Punto*)malloc (sizeof(Punto));r=(Punto*)malloc (sizeof(Punto)); leer_punto(q);leer_punto(r); prod=prod_escalar(q,r);dist=distancia (q,r); printf("n … Seguir leyendo
Publicado en programacion
1 Comentario
Puntos tridimensionales (versión 1)
Pilar Masoli #include <stdio.h>#include <stdlib.h>#include <math.h> struct punto{ float x; float y; float z;}; typedef struct punto Punto; void leer_punto (Punto*);float prod_escalar (Punto*, Punto*);float distancia (Punto*, Punto*); int main(){Punto *q, *r;float dist, prod; q=(Punto*)malloc (sizeof(Punto));r=(Punto*)malloc (sizeof(Punto)); leer_punto(q);leer_punto(r); prod=prod_escalar(q,r);dist=distancia (q,r); printf("n … Seguir leyendo
Publicado en programacion
1 Comentario