From 8038b4020493fafd263f2e817db9afd90bb44688 Mon Sep 17 00:00:00 2001 From: AkaishiTakumi <115193708+AkaishiTakumi@users.noreply.github.com> Date: Tue, 19 Aug 2025 10:40:37 +0900 Subject: [PATCH 1/4] =?UTF-8?q?[update]=2010=E5=9B=9Ehello=20world?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit forで10回出力するようにした --- hello.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello.cpp b/hello.cpp index ee44dda..048a607 100644 --- a/hello.cpp +++ b/hello.cpp @@ -4,6 +4,6 @@ using namespace std; int main() { - cout << "Hello World!" << endl; + for(int i=0;i<10;++i) cout << "Hello World!" << endl; return 0; } \ No newline at end of file From 6eade49e86dd79386bfe01c740e5669db1e2a38a Mon Sep 17 00:00:00 2001 From: AkaishiTakumi <115193708+AkaishiTakumi@users.noreply.github.com> Date: Tue, 19 Aug 2025 10:53:44 +0900 Subject: [PATCH 2/4] =?UTF-8?q?[update]=20file=E5=90=8D=E3=81=AE=E5=A4=89?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hello.cppに自分の名前を追加 --- hello.cpp => Akaishi_hello.cpp | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename hello.cpp => Akaishi_hello.cpp (100%) diff --git a/hello.cpp b/Akaishi_hello.cpp similarity index 100% rename from hello.cpp rename to Akaishi_hello.cpp From a0b5ddfa53270b6505f0f03f727a8ca7cc8e5987 Mon Sep 17 00:00:00 2001 From: AkaishiTakumi <115193708+AkaishiTakumi@users.noreply.github.com> Date: Tue, 19 Aug 2025 10:55:04 +0900 Subject: [PATCH 3/4] =?UTF-8?q?[update]=202=E6=95=B4=E6=95=B0=E3=81=AE?= =?UTF-8?q?=E6=AF=94=E8=BC=83=E3=82=92=E3=81=A7=E3=81=8D=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 二つの整数(a,b)を入力しa=bを出力する --- Akaishi_hello.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Akaishi_hello.cpp b/Akaishi_hello.cpp index 048a607..2dd05d6 100644 --- a/Akaishi_hello.cpp +++ b/Akaishi_hello.cpp @@ -4,6 +4,19 @@ using namespace std; int main() { - for(int i=0;i<10;++i) cout << "Hello World!" << endl; + int a, b; + cin >> a; + cin >> b; + if (a < b) + cout << a; + cout << "<" << b << endl; + else + { + cout << a; + cout << ">=" << b << endl; + } + + for (int i = 0; i < 10; ++i) + cout << "Hello World!" << endl; return 0; } \ No newline at end of file From 4a7b8893a399d2c353daa7d1810aa28fa07a21ac Mon Sep 17 00:00:00 2001 From: AkaishiTakumi <115193708+AkaishiTakumi@users.noreply.github.com> Date: Tue, 19 Aug 2025 12:43:43 +0900 Subject: [PATCH 4/4] =?UTF-8?q?[fix]=20{}=E3=81=8C=E3=81=AA=E3=81=84?= =?UTF-8?q?=E5=95=8F=E9=A1=8C=E3=82=92=E8=A7=A3=E6=B1=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit elseに対応するifがない問題を{}を書き足して解決 --- .vscode/settings.json | 5 +++++ Akaishi_hello.cpp | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..cb996a9 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "files.associations": { + "iostream": "cpp" + } +} \ No newline at end of file diff --git a/Akaishi_hello.cpp b/Akaishi_hello.cpp index 2dd05d6..c4b0b68 100644 --- a/Akaishi_hello.cpp +++ b/Akaishi_hello.cpp @@ -8,8 +8,10 @@ int main() cin >> a; cin >> b; if (a < b) + { cout << a; cout << "<" << b << endl; + } else { cout << a;