Home c++ process error 0xc000013a

process error 0xc000013a

Author

Date

Category

Simple program that displays the current dates and time values ​​to the console:

# include & lt; iostream & gt;
#Include & lt; Ctime & gt;
INT MAIN (Void)
{
  TIME_T TT = TIME (NULL);
#Pragma Warning (Disable: 4996)
  TM * TIM = Localtime (& amp; TT);
  STD :: COUT & LT; & LT; Tim- & gt; TM_MDAY & LT; & LT; '.' & lt; & lt; Tim- & gt; TM_MON + 1 & LT; & LT; '.' & lt; & lt; Tim- & gt; TM_YEAR + 1900 & lt; & lt; STD :: ENDL & LT; & LT; Tim- & gt; TM_HOUR & LT; & LT; ':' & lt; & lt; Tim- & gt; TM_MIN & LT; & LT; ':' & lt; & lt; Tim- & gt; TM_SEC & LT; & LT; STD :: ENDL;
  DELETE TIM;
  Return EXIT_SUCCESS;
}

ends with code 0xc000013a. How to fix?


Answer 1, Authority 100%

Localtime uses some kind of internal representation, the pointer to which it returns. It is unnecessary and cannot be removed, so remove Delete .

Previous articleWhat is Java EE?
Next articleSplit Method in Python

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions