fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Mitglied;
  5. static Mitglied* ptrVorstand;
  6. struct Mitglied{
  7. static Mitglied* getptrVorstand(){
  8. return ptrVorstand; //alles ok
  9. }
  10. };
  11.  
  12.  
  13. int main(){
  14.  
  15. Mitglied *ptr=NULL;
  16. ptr=Mitglied::getptrVorstand();
  17. }
  18.  
Success #stdin #stdout 0s 3336KB
stdin
Standard input is empty
stdout
Standard output is empty