אני רוצה לשאוב את התאריך כרגע ולשים אותו בתוך סטרינג ב c++
char* DateNow() { char date; _strdate_s(date); return date;}
זה מחזיר את התאריךאבל כשאני מעתיק את מה שהוחזר strcpyזה לא מועתק והכל נהיה גיבריש
vhd.SetProdDate(DateNow());
char* Disk::DateNow() { char date; _strdate_s(date); return date;}