OneCompiler

C++ Vectors

254

Following is sample c++ code with vectors.

int x[101], i, n;
int main () 
{
  // "cin" of the vector;
  for (i=1; i<=n; i++)
   cin>>x[i];
}