All pastes #923766 Raw Edit

Untitled

public text v1 · immutable
#923766 ·published 2008-02-29 21:03 UTC
rendered paste body
#include <iostream>
#include <string>
#include <vector>
#include <fstream>
using namespace std;

int main() {

	vector<float> v;
	
	// Populate a vector with 25 floats	
	for (int i = 0; i < 25; i++)
	   	v.push_back(i);

	for (int i = 0; i < v.size(); i++)
		cout << v[i] << " ";
	
	cout << endl;

	return 0;

}


OUTPUT......

tom@BigLaptop:~/CPP_projects/Eckel/C02$ ./a.out
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24