Hello fellas, i have this short commands what take 2 numbers from a file separated by a space (" "), and i get this error error: no match for'operator<<' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'float')| , what should i can do to fix it? thanks in advance!
Note that when using ofstream you should use << because you are writing data to the stream and when using ifstream you should use >> because you are reading data from the stream.