Message from C, C++ discussions

December 2019

— Debuggers such as lldb are able to inspect private members, not sure what you consider "debugging purpose"

Message permanent page


But it's not possible to do with just language itself? So far the simplest solution I found was to comment out access specifiers and just put public: at the start of the class.

— How do you debug your code? After compilation there are no access modifiers anymore

— Oh, by simply outputting various variables during runtime.

— That's not the best way to debug your code. You could create a public method that dumps all the fields.

Message permanent page

— Can anyone say how this program have been evaluated

— It's only for 1 year on base of college email id

— Yep Visual studio

— 🙄

— Is it? Doesn't the comma operator guarantee the order of evaluation?

— /warn screen photo

— Rose is sleeping🌚