fork download
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. class AddressInfo
  5. {
  6. int ammoCount;
  7. int pointerLevel;
  8. std::vector<uint32_t> offsets;
  9.  
  10. public:
  11. AddressInfo(int ammoCount, int pointerLevel, std::vector<uint32_t> offsets) :
  12. ammoCount{ ammoCount }, pointerLevel { pointerLevel }, offsets{ offsets }
  13. {
  14. }
  15.  
  16. void print(size_t i)
  17. {
  18. std::cout << this->offsets.at(i) << std::endl;
  19. }
  20. };
  21.  
  22. int main()
  23. {
  24. AddressInfo ammo (1000, 0x00509B74, { 0x374, 0x14, 0x0 });
  25. ammo.print(0);
  26. ammo.print(1);
  27. ammo.print(2);
  28.  
  29. return 0;
  30. }
Success #stdin #stdout 0s 4376KB
stdin
Standard input is empty
stdout
884
20
0