Skip to content

Instantly share code, notes, and snippets.

@allisons
Created November 20, 2009 02:07
Show Gist options
  • Save allisons/239225 to your computer and use it in GitHub Desktop.
Save allisons/239225 to your computer and use it in GitHub Desktop.
ostream& operator<<(ostream& out, const hashmap& h)
{
if (h.size == 0)
{
out << "No stocks" << endl;
return out;
}
int printIndex;
for (printIndex = 0; printIndex <= h.capacity; printIndex++)
{
if (myStocks[printIndex].symbol != NULL)
// here it says, "mystocks not declared in this scope"
out << myStocks[printIndex] << endl;
}
return out;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment