jeudi 17 décembre 2020

file output in lamda function C++

I am trying to write a and b to file, it is not working and I am not sure what is my mistake here. (New to C++)

std::fstream file(file_path, std::fstream::app);

function(new function_y( 
    [file](int a, int b)
    {
       file << a << b; 
    });

Aucun commentaire:

Enregistrer un commentaire