Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. // Homework6.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <vector>
  6. #include <iostream>
  7. using namespace std;
  8.  
  9. struct Pokemon{
  10.     string name;
  11.     int hits;
  12.     int tricks;
  13.     int blocks;
  14.     int wins;
  15.     bool alive;
  16. };
  17.  
  18.  
  19. int main(){
  20.  
  21.    
  22.     vector <Pokemon> pokelist;
  23.  
  24.     pokelist.reserve(4);
  25.  
  26.     pokelist[0].name = "Dongmaster";
  27.  
  28.     //cout << pokelist[0].name;
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement