What is the best way to get and write every argument that is passed in EX1 and how to get and write to log file every argument that function receive in EX2, but keep in mind i don't know what type(int, float, string ...) the argument will be, is there a universal way i can write every type to file?
PS. I tried to code format but it won't open window to input code.
it isnt a window its just tags that tell it to use the format you pasted in rather than reformat it to message style.
is the log file text, can you just write it on a line, with a time stamp or something?
if every type can be used by cout / stream operator, it should be fine.