Print Date and Time In Visual Studio C++ build?

后端 未结 5 1119
故里飘歌
故里飘歌 2020-12-17 23:49

How would I print the date and time for the purposes of the build. Ie: When the console for my application starts up I want to do this:

Binary B         


        
5条回答
  •  伪装坚强ぢ
    2020-12-18 00:13

    Note that the time and date macros only work as desired if the particular file containing them is guaranteed to be compiled during every build.

提交回复
热议问题