How get current date ,file name and Current Time as output in c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 13

How get current date ,file name and Current Time as output in c++

20th Mar 2017, 2:19 PM
Amar Dahake
3 Answers
+ 3
you can use a macro __FILE__, __LINE__,__func__
20th Mar 2017, 7:29 PM
$ยข๐Žโ‚น๐”ญ!๐จ๐“
$ยข๐Žโ‚น๐”ญ!๐จ๐“ - avatar
+ 3
__DATE__,__TIME__
20th Mar 2017, 7:30 PM
$ยข๐Žโ‚น๐”ญ!๐จ๐“
$ยข๐Žโ‚น๐”ญ!๐จ๐“ - avatar
+ 3
use #include <ctime>
27th Mar 2017, 7:09 PM
stance changer
stance changer - avatar