lesson03_vector

#include <iostream> #include <vector> using namespace std; int main() { vector<int> squares(100); for(unsigned int i = 0; i< squares.size(); i++) squares[i] = i * i; for(unsigned int i=0; i<squares.size(); i++) cout << squares[i] << endl; return 0; }

你可能感兴趣的:(lesson03_vector)