Skip to content

Instantly share code, notes, and snippets.

@cceckman
Created March 5, 2014 04:17
Show Gist options
  • Select an option

  • Save cceckman/9361053 to your computer and use it in GitHub Desktop.

Select an option

Save cceckman/9361053 to your computer and use it in GitHub Desktop.
Resizing a vector.
#include <cstdio>
#include <vector>
int main(){
int new_size = 3;
std::vector<int> blah;
blah.resize(new_size);
printf("%d\n", blah.size());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment