首页 > 代码库 > TRY vector

TRY vector

#include<iostream>
#include<string>
#include<vector>
using namespace std;
int main()
{
    vector <string> name;
    name.push_back("xiao jia yu ~");
    name.push_back("xiao you yu ~");
    for( int i=0; i < name.size(); i++ )
    {
        cout<<name[i]<<endl;
    }
    return 0;
}

TRY vector