g ++ c ++エラー:「malloc」はこのスコープで宣言されていません
G C Error Mallocwas Not Declared This Scope
C ++でmalloc()を使用すると、エラー:「malloc」がこのスコープで宣言されませんでした
1.間違った書き込み。
2.対応するライブラリへの参照はありません。
解決 :stdlib.hを紹介します
#include
試されていない別の解決策があると思います: https://blog.csdn.net/u012197749/article/details/79687899 |