All pastes #1672994 Raw Edit

Mine

public cpp v1 · immutable
#1672994 ·published 2009-11-16 03:38 UTC
rendered paste body
#include <iostream>#include <string>#include <vector>using namespace std;int main (int argc, char * const argv[]) {    vector<int> number;    vector<int>::iterator vi;    string s = "";        cout << "gimme dat number, bummer" << endl;            while (1) {	cout << "> ";	cin >> s;			if (s == "No")            break;			//cout << "heywaitasec";	number.push_back(atoi(s.c_str()));    }	    cout << "here are the numbers:" << endl;    for (vi = number.begin(); vi != number.end(); vi++)        cout << *vi << " ";	cout << endl;	    return 0;}