https://blog.csdn.net/xs18952904/article/details/75195412
memset只能初始化成为0或者-1,其他都要用fill来完成.
#include<bits/stdc++.h> using namespace std; const int INF = 1e9; int main() { int a[100][100]; fill(a[0], a[0] + 100 * 100,INF); //memset(a, 5, sizeof(a)); printf("%d", a[50][50]); }