Example #1
0
int main()
{
  assert(counts_.max_size() > 0xFFFFFFFFUL);
  counts_.resize(1L << 32);
  printf("%zd\n", counts_.size());

  add(0x1);
  add(0x2);
  add(0x2);
  for (size_t i = 0; i < (1L << 32)-1; ++i)
    add(0x3);
  printf("%08x %u\n", top.ip, top.count);
}
Example #2
0
void imprimirVector(std::vector<int> &vectorEnteros){
	std::cout << "Hola" << std::endl;
	int limite = 5;
	for (int i = 0; i < limite; i++){
		vectorEnteros.push_back(i);
	}
	int vectorSize = vectorEnteros.size();
	std::cout << "Size vector: " << vectorSize << std::endl;
	std::cout << "LIMITE del Vector: " << vectorEnteros.max_size() << std::endl;
	for (int i = 0; i < vectorEnteros.size(); i++){ // i like iterators, but because i am learning i prefer use this first
		std::cout << vectorEnteros[i] << std::endl;
	}
}