[ create a new paste ] login | about

Link: http://codepad.org/CWGqNyM2    [ raw code | output | fork ]

hecomi - C++, pasted on Jun 17:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <iostream>
#include <vector>

using namespace std;

int main()
{
	vector<int> array;
	for (int i=0; i<10; i++) {
		array.push_back(i);
	}
	
	for (vector<int>::iterator it = array.begin(); it != array.end(); it++) {
		cout << *it << endl;
	}

	return 0;
}


Output:
1
2
3
4
5
6
7
8
9
10
0
1
2
3
4
5
6
7
8
9


Create a new paste based on this one


Comments: