diff options
author | Oskar <[email protected]> | 2024-11-01 10:44:53 +0100 |
---|---|---|
committer | Oskar <[email protected]> | 2024-11-01 10:44:53 +0100 |
commit | 77b344e13eae4b4439f96a8d062151da03bf8263 (patch) | |
tree | c7ed835678354e1877383884f7c061b5930b7328 /9p39.cpp | |
parent | ce6f87441ab2343f7730139f20d25b41e9dd6080 (diff) |
been a while, took a break i guess
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; +} |