Home > Back-end >  For bosses to help have a look at the error change c to c language!
For bosses to help have a look at the error change c to c language!

Time:09-25

Blue graffiti that how to change to c? Urgent, thanks!

CodePudding user response:

Char * sM=(char *) malloc (L + 1);

CodePudding user response:

reference 1/f, arfi response:
char * sM=(char *) malloc (L + 1);

There are also a delete sM yeah yeah thanks to do the following; How to modify?

CodePudding user response:

Free (sM);

CodePudding user response:

reference 5 floor m0_46108109 reply:
free (sM);

See, thank you very much ~

CodePudding user response:

C new standard can be used in variable definitions array length, and there is the standard C + +,
To change to dynamic allocation, or directly using a container such as STD: : vector,
  • Related