Skip to content

Commit 822f771

Browse files
authored
Apply suggestions from code review
1 parent b4148c5 commit 822f771

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

files/arith4.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#include <iostream>
22

33
int main() {
4-
int a;
5-
int b;
4+
int a{};
5+
int b{};
66

77
std::cout << "Gebe eine Zahl ein: ";
88
std::cin >> a;

files/debugger.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#include <iostream>
22

33
int main() {
4-
int a;
5-
int b;
6-
int c;
4+
int a{};
5+
int b{};
6+
int c{};
77

88
std::cout << "Gebe eine Zahl ein: ";
99
std::cin >> a;

files/if.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#include <iostream>
22

33
int main() {
4-
int a;
5-
int b;
4+
int a{};
5+
int b{};
66

77
std::cout << "Gebe eine Zahl ein: ";
88
std::cin >> a;

0 commit comments

Comments
 (0)