diff options
Diffstat (limited to '9p39.cpp')
-rw-r--r-- | 9p39.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/9p39.cpp b/9p39.cpp new file mode 100644 index 0000000..c50c769 --- /dev/null +++ b/9p39.cpp @@ -0,0 +1,22 @@ +#include <iostream> + +/* + * + * 9.39 + * + * + */ + +int main () { + + /* + vector<string> svec; // Creates vector + svec.reserve(1024); // Reserve 1024 so it can grow 1024 times before reallocating + string word; + while (cin >> word) { // Get strings + svec.push_back(word); + } + svec.resize(svec.size()+svec.size()/2); // We resize again + */ + return 0; +} |