eg
"Prog: Bodgit, Version: 0.0.0, Compiled: 20061215"
ANSI C/C++ contains some predefined macros as follows
__DATE__
The compilation date of the current source file. The date is a string literal of the form Mmm dd yyyy.
__FILE__
The name of the current source file. __FILE__ expands to a string surrounded by double quotation marks.
__LINE__
The line number in the current source file. The line number is a decimal integer constant.
__STDC__
Indicates full conformance with the ANSI C standard.
__TIME__
The most recent compilation time of the current source file. The time is a string literal of the form hh:mm:ss.
__TIMESTAMP__
The date and time of the last modification of the current source file, expressed as a string literal in the form Ddd Mmm Date hh:mm:ss yyyy, where Ddd is the abbreviated day of the week and Date is an integer from 1 to 31.
So you can achieve what you want with the string
-
"Prog: Bodgit, Version: 0.0.0, Compiled: " __DATE__
-