then when I want to compile the program I get an error in both #include iostream and #include sstream, (I put it here because in the code that I paste it does not show it) it gives me the error of 'In file from'.
#include <iostream>
#include<sstream>
using namespace std;
typedef struct{
int num;
int cont;
int suma;
stringstream ss;
}punto;
punto funcion1();
/*
*
*/
int main(int argc, char** argv) {
//Se crea variable de tipo 'punto'
punto datos;
//Se define el valor de la variable coordenadaA mediate el retorno de la funcion PedirPunto()
datos = funcion1();
//se trabaja con los valores de la estructura.
cout<<"suma: "<<datos.suma<<endl;
cout<<"numeros: "<<datos.num<<endl;
cout<<"veces: "<<datos.cont<<endl;
return 0;
}
punto funcion1()
{
punto valor;
cout<<"Ingrese el número: ";cin>>valor.num;
valor.cont = 0;
valor.suma = 0;
while (valor.num > 0)
{
valor.suma = valor.suma + valor.num;
valor.cont++;
valor.ss<<valor.num<<",";
cout<<"Ingrese otro número: ";cin>>valor.num;
}
return valor;
}