메뉴 닫기

C++ Vector와 Iterator의 사용

#include<iostream>
#include<vector>

using namespace std;

int main()
{
    vector<int> p;
    int tmp;

    for(int i=0;i<10;i++)
    {
        cin >> tmp;
        p.push_back(tmp);
    }

    vector<int>::iterator i;
    for(i=p.begin(); i<p.end(); i++)
        cout << *i << " ";

}

3 Comments

  1. porno

    GreetingsHey thereHeyGood dayHowdyHi thereHello thereHiHello! This is my 1stfirst comment here so I just wanted to give a quick shout out and tell yousay I genuinelytrulyreally enjoy reading throughreading your blog postsarticlesposts. Can you suggestrecommend any other blogs/websites/forums that go overdeal withcover the same subjectstopics? Thank you so muchThanks for your timeThanks a tonAppreciate itThanks a lotMany thanksThanksThank you! Bud Peach

  2. sex partisi

    Have you ever thought about writing an ebook or guest authoring on other websites? I have a blog centered on the same subjects you discuss and would love to have you share some stories/information. I know my readers would enjoy your work. If you are even remotely interested, feel free to shoot me an e-mail. Leon Tooke

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다