Hello
I get this error:
" Invalid operand of types '<unknown type>' and 'const char [3]' to binary 'operator<<' "
What can i do to solve it?
Best Regards
Joriek
You seem to be misusing the extraction operator, we would need some sauce to tell you where it goofed.
C++ says the error is at this line
log << "x:" << total << " y:" << total2 << " z:" << total3 << std::endl;
this line has to save the values of total, total2 and total3 to a .txt file
but it gives the error
the total variables are all three doubles
nvm fixed it
thanks for help anyway
That appears to be fine as long as 'log' is of type "std::ofstream". How long is your entire program?