+ 1
Error in this code
This code includes 'string' and uses the string object but does not prefix it with 'std::' or say 'using namespace std' and therefore would not compile.
3 Respostas
+ 1
What code?
+ 1
The first question under C++ -> Classes and Objects -> Examples of Encapsulation. sorry, I figured it would put the question right next to that code (still figuring out how this Q and A thing works).
0
Ahhh, I see. I should have put this as a comment, not a question. My bad.