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;
}

posted on 2017-03-29 17:59  TogetherLaugh  阅读(102)  评论(0编辑  收藏  举报