-
Entradas recientes
Blog Stats
- 888.691 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: enero 2019
Calculadora
JORGE NAVARRO LAPENA #include <iostream> #include <cmath> #include <conio.h> using namespace std; int main () { int herramienta = 0; int cbasica = 0; int ccompleja = 0; double n1 = 0; double n2 = 0; int contador = 0; … Seguir leyendo
Publicado en Informática e Internet
Deja un comentario
Suma de matrices cuadradas aleatorias
María Rubio Viana #include <iostream> #include <stdio.h> #include <stdlib.h> #include <time.h> using namespace std; int main() { int d, i, j; int M[20][20], N[20][20], S[20][20]; cout<<«Introduce la dimension de tu matriz cuadrada: «<<endl; cin>>d; srand(time(NULL)); for (i=1; i<=d; i++) { … Seguir leyendo
Publicado en Informática e Internet
Deja un comentario
Ficheros con datos de clientes
JORGE MARTIN NIETO #include <stdio.h> #include <stdlib.h> int cliente=1; struct persona{ char nombre[20]; char apellido[20]; int edad; }; struct persona leer(void); int main(){ int c,i; struct persona lista[100]; FILE *fp; fp=fopen(«clientes3.txt»,»w+»); if(fp==NULL)printf(«ERROR AL CARGAR FICHERO»); printf(«Cuantos clientes hay»); scanf(«%d»,&c); fflush(stdin); … Seguir leyendo
Publicado en Informática e Internet
Deja un comentario
Suma de dos números complejos
ANTONIO ALÓS IGUACEL /*PROGRAMA CON EL QUE PUEDES SUMAR NÚMEROS COMPLEJOS*/ #include<iostream> #include<conio.h> using namespace std; struct complejo{ float real,imaginaria; }z1,z2; typedef struct complejo complejo; //Prototipo de Función void pedirDatos(); complejo suma(complejo,complejo); void muestra(complejo); int main(){ pedirDatos(); complejo x = … Seguir leyendo
Publicado en Informática e Internet
Deja un comentario
Cuál es tu signo del zodíaco
ANTONIO ALÓS IGUACEL /*PROGRAMA AL QUE TU LE DAS LA FECHAS DE TU CUMPLEAÑOS Y TE DICE EL SIGNO DEL ZODIACO QUE ERES*/ #include <iostream> using namespace std; int main() { int mes, dia; cout<<«\t\t\tSIGNO ZODIACAL»<<endl; cout<<«(1)Enero \t(2)Febrero \t(3)Marzo \t(4)Abril»<<endl; … Seguir leyendo
Publicado en Informática e Internet
Deja un comentario
Paso de años a otras unidades de tiempo
Diego Aranda Madurga // Este programa convierte el numero de años a otras unidades de tiempo #include <iostream> using namespace std; int main() { int anios,meses,dias; int horas,minutos,segundos; cout<<«introduce el numero de anios: «; cin>> anios; meses=anios*12; dias=365*anios; horas=24*365*anios; minutos=365*24*60*anios; … Seguir leyendo
Publicado en Informática e Internet
Deja un comentario
Almacenamiento Little Endian de enteros
Antonio López Escós /* Convertir un dato tipo long en dos datos tipo short (usando aritmética de punteros) */ #include <stdio.h> int main (void) { long Dato = 0x41413737; long * refDatoLong; short * refDatoShort; refDatoLong = &Dato; refDatoShort = … Seguir leyendo
Publicado en Informática e Internet
Deja un comentario
Creación y escritura en un fichero
BEATRIZ MARCO BARRIOSETA //CREACION Y ESCRITURA DE UN FICHERO #include<stdio.h> #include<stdlib.h> int main() { float x; FILE *pf; pf=fopen(«datos.txt»,»w»);//apertura de fichero printf(«DAME UN NUMERO : «); scanf(«%f»,&x); fprintf(pf,»El numero es: %f \n»,x);//escritura en el fichero fclose(pf);//cierre del fichero system(«PAUSE»); return … Seguir leyendo
Publicado en Informática e Internet
Deja un comentario
Elemento mínimo de una matriz
BEATRIZ MARCO BARRIOSETA //ESTE PROGRAMA CALCULA EL MINIMO DE UNA MATRIZ #include <stdio.h> #define N 5 int main() { int matriz[N][N],i,j; int minimo;//valor minimo int iMin,jMin;//INDICES DE VALOR MINIMO //SE LEE LA MATRIZ for(i=0;i<N;i++) for(j=0;j<N;j++) { printf(«Introduzca el elemento [%d][%d]: … Seguir leyendo
Publicado en Informática e Internet
Deja un comentario
Mostrar en pantalla los N últimos números de un array
Antonio López Escós #include <stdio.h> #define MAX 2000 int main(){ FILE *f; int N, i=1; int v[MAX],cont,j; char c; f=fopen(«fichero1.txt»,»r+»); if(f==NULL){ printf(«Error al abrir el fichero de lectura»); }else{ fscanf(f,»%d%c»,&v[0],&c); while(!feof(f)){ fscanf(f,»%d%c»,&v[i],&c); i++; } do{ printf(«Introduce N \n»); scanf(«%d»,&N); } … Seguir leyendo
Publicado en Informática e Internet
Deja un comentario