fork download
  1. class A {
  2. public:
  3. void DoSomething();
  4. private:
  5. int m_v;
  6. };
  7.  
  8. class B {
  9. public:
  10. static int GetV() { return 1; }
  11. void Do() {
  12. A a; a.DoSomething();
  13. }
  14. };
  15.  
  16. void A::DoSomething() {
  17. m_v = B::GetV();
  18. }
  19.  
  20. int main() {
  21. return 0;
  22. }
Success #stdin #stdout 0s 5620KB
stdin
Standard input is empty
stdout
Standard output is empty