SO i have to make a 2D array of type Organism for my class, this is my code, we are using C++ and visual studio, this code "succeeds" but doesn't actually print anything, and help or suggestions would be great.
///////HEADER
#include <iostream>
#include <string>
using namespace std;
Just a few notes... Please use the code tags for easier viewing by your peers. to do so select your code and then click the button next to or bellow your post that has two brackets like this
<>..it makes things so much easier to read.
That being said. what is this 'friend' identifier, I've never seen it
A friend function is used for accessing the non-public members of a class. A class can allow non-member functions and other classes to access its own private data, by making them friends. Thus, a friend function is an ordinary function or a member of another class.