Printing a Multidimensional Array

Hello, I am quite new to C++ and have had some experience with it, the question I have is How do you get this to work?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>
#include <string>

using namespace std;

int main()
{
    string attacks[4][4] = {{"Burn", "Bite", "Rage", "Heal"}, {"Flood", "Whip", "Cool", "Heal"},{"Quake", "Stomp", "Toughen", "Heal"},{"Gust", "Scream", "Veer", "Heal"}};
    for(int row;row<4;row++){
        for(int col;col<4;col++){
            cout << attacks[row][col] << " ";
        }
        cout << endl;
    }
}

After I run it in Codeblocks I get an empty build.
Where I learned C++ is http://thenewboston.org/list.php?cat=16 and I am on number 56.

Thank You
Tell me, what do you set as the starting value of row and col?
Oops Thank you very much It works now
Topic archived. No new replies allowed.