Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Homework6.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <vector>
- #include <iostream>
- using namespace std;
- struct Pokemon{
- string name;
- int hits;
- int tricks;
- int blocks;
- int wins;
- bool alive;
- };
- int main(){
- vector <Pokemon> pokelist;
- pokelist.reserve(4);
- pokelist[0].name = "Dongmaster";
- //cout << pokelist[0].name;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement