我一直都是用这个万能头文件,从来就没出过问题。
#include <bits/stdc++.h>
using namespace std;
到后来突然发现这个memset出了问题。
#include <bits/stdc++.h>
#include <cstring>
using namespace std;
把它特定的头文件 cstring 加进去后还是不行。
请问一下这是我代码问题还是编译器问题?
之前也用过memset但似乎当时并没有报错。
试试
#include<string.h>
stdlib.h 试试