I am new programming in c ++; So far I have programmed in visual basic.e get in state of 4 analog inputs and save them in a list EA={"","","",""}
. But when I want the function to return that list ( return EA;
) it gives me an error. I leave you in code in case you can help me.
I have modified the code and I almost have it but it still gives me a conversion error:
std::tr1::array<int, 4>FuncionEA(){
std::tr1::array<int, 4> EA[]={0,0,0,0};
return EA;}
the error is as follows:
Error 1 error C2440: 'return' : no se puede realizar la conversión de 'std::tr1::array<_Ty,_Size> [1]' a 'std::tr1::array<_Ty,_Size>' c:\users\p\documents\visual studio 2008\projects\we\we\we.cpp 13 we