|
|
back to boardhow to input data in c / c ++? Re: how to input data in c / c ++? Re: how to input data in c / c ++? void Readinp() { int x,y; memset(a,0,sizeof(a)); memset(b,0,sizeof(b)); while (cin >> x >>y) { a[x][y]=1; a[y][x]=1; b[x]++; b[y]++; n=max(n,max(x,y)); } } |
|
|