1
C / C++ / Re:[C++] No me funcionan...
« en: 01 de Noviembre de 2010, 16:40:48 pm »
Si te sigue sin funcionar prueba a usar printf en vez de cout y scanf en vez de cin, por ejemplo:
#include <stdio.h>; //para el prinf y scanf
#include <stdlib.h>; //para usar el system("PAUSE")
int main() {
int entero1, entero2, total;
printf("Introduce un entero \n");
scanf("%d", &entero1);
printf("Introduce otro entero \n");
scanf("%d", &entero2);
total = entero1 + entero2;
printf("La suma es %d \n", total");
system("PAUSE");
return 0;
}
PD: Yo uso el wxDev-c++.
Saludos!
#include <stdio.h>; //para el prinf y scanf
#include <stdlib.h>; //para usar el system("PAUSE")
int main() {
int entero1, entero2, total;
printf("Introduce un entero \n");
scanf("%d", &entero1);
printf("Introduce otro entero \n");
scanf("%d", &entero2);
total = entero1 + entero2;
printf("La suma es %d \n", total");
system("PAUSE");
return 0;
}
PD: Yo uso el wxDev-c++.
Saludos!