Hi! It might be a very simple question but I am still stuck on it:
Why in the Whale Talk program we need a for-loop for the output?
for (int k = 0; k < whale_talk.size(); k++) {
std::cout << whale_talk[k];
}
std::cout << "\n";
}
Why this doesn’t work:
std::cout << whale_talk << " \n";
Here the link to the full program code:
https://github.com/Codecademy/learn-cpp/blob/master/5-vectors/whale.cpp
Thanks!