+ 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.

26th Dec 2016, 4:23 AM
Seth Berrier
Seth Berrier - avatar
3 Answers
+ 1
What code?
26th Dec 2016, 4:29 AM
Cohen Creber
Cohen Creber - avatar
+ 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).
26th Dec 2016, 4:37 AM
Seth Berrier
Seth Berrier - avatar
0
Ahhh, I see. I should have put this as a comment, not a question. My bad.
26th Dec 2016, 4:44 AM
Seth Berrier
Seth Berrier - avatar