Für Vorlesungen, bitte die Webseite verwenden. https://flavigny.de/lecture
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
353B

  1. namespace A {
  2. int n = 1;
  3. int m = n;
  4. }
  5. namespace B {
  6. int n = 2;
  7. class X {};
  8. }
  9. namespace C {
  10. double x;
  11. int f (double x) {return x;}
  12. namespace D {
  13. double x,y;
  14. int f (double x) {return x;}
  15. }
  16. }
  17. namespace C {
  18. double y;
  19. }
  20. int main ()
  21. {
  22. A::n = B::n + 3;
  23. C::x = 0.0;
  24. C::y = 1.0;
  25. C::D::y = 2.0;
  26. C::f(2.0);
  27. return 0;
  28. }