It seems rather tedious to output to debug window. Where can I find cout output if I am writing a non-console information ?
cout
Like:
double
For a Windows solution, you can allocate a console, and bind cout/cin to it. For example:
AllocConsole(); freopen("CONOUT$", "w", stdout); freopen("CONOUT$", "w", stderr);
Documentation: https://msdn.microsoft.com/en-us/library/windows/desktop/ms681944%28v=vs.85%29.aspx