diff --git a/files/arith4.cpp b/files/arith4.cpp index 857c9d5..3658b1e 100644 --- a/files/arith4.cpp +++ b/files/arith4.cpp @@ -1,7 +1,8 @@ #include int main() { - int a, b; + int a{}; + int b{}; std::cout << "Gebe eine Zahl ein: "; std::cin >> a; diff --git a/files/debugger.cpp b/files/debugger.cpp index 618ca32..cb6bf5b 100644 --- a/files/debugger.cpp +++ b/files/debugger.cpp @@ -1,7 +1,9 @@ #include int main() { - int a, b, c; + int a{}; + int b{}; + int c{}; std::cout << "Gebe eine Zahl ein: "; std::cin >> a; diff --git a/files/if.cpp b/files/if.cpp index c84e9aa..455f6d9 100644 --- a/files/if.cpp +++ b/files/if.cpp @@ -1,7 +1,8 @@ #include int main() { - int a, b; + int a{}; + int b{}; std::cout << "Gebe eine Zahl ein: "; std::cin >> a;