The code I have works fine in the Visual compiler, but will not compile in g++. Its 3 files. The header file, the main , and another... the error that keeps appearing is "invalid initialization of non-const ref"....
I will post the header and definition class, any help is appreciated as I am a novice programer
It would be easier if you edited your post, select the code, then press the <> button. This will use code tags. Then we get line numbers, keywords and can compile it right here with cpp.sh - the gear icon top right of the code snippet.
You should compile with a high level of warnings and with the latest standard, as a minimum:
Thank you all, but with the help of a friend I did figure it out, HOWEVER, I will in the future use the coding blocks as was asked of me. Again thank you!
I apologize, I did not see this point until now, it was partly the fcn and the other part was the I actually forgot to bring the text file I was trying to read over into Linux as well....