1. 소스 내용
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<string> vStr;
vStr.push_back("hello");
vStr.push_back(" world");
vStr.push_back("!!\n");
vector<string>::iterator itor;
for(itor = vStr.begin();itor != vStr.end();itor++){
cout << *itor;
}
return 0;
}2. 실행 결과
hello world!!
댓글 없음 :
댓글 쓰기