A few questions

im on [Unreal Engine C++ Developer: Learn C++ and Make Video Games] 17 as of now & on windows

1st (sorry if this comes latter) is there any other way to compile and run more quickly then cl bla.cpp [enter] bla [enter]

2nd the code { std::cout << std::endl; } runs fine as { std::end; } so why include " std::cout << " (habbet or function)

  1. You can create a build task
    https://code.visualstudio.com/docs/cpp/config-msvc#_build-helloworldcpp
  2. To print that to the terminal. std::endl by itself does nothing and is a compiler error. You were just running your already existing .exe.
    https://godbolt.org/z/YPeaM7Mn3 - proof it doesn’t compile on the 3 major compilers.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms