From ca8d7997e3eb4e115679047bc2525387be75f0bf Mon Sep 17 00:00:00 2001 From: chaebkimm Date: Sat, 22 Feb 2025 23:34:15 +0900 Subject: [PATCH 1/7] =?UTF-8?q?=EC=A3=BC=EC=84=9D=20=EC=8B=A4=EC=8A=B5=20?= =?UTF-8?q?=EC=86=94=EB=A3=A8=EC=85=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 + Computer-Programming-and-Practice-2025-1.sln | 31 ++++ ...er-Programming-and-Practice-2025-1.vcxproj | 135 ++++++++++++++++++ ...amming-and-Practice-2025-1.vcxproj.filters | 14 ++ main.c | 8 ++ 5 files changed, 190 insertions(+) create mode 100644 .gitignore create mode 100644 Computer-Programming-and-Practice-2025-1.sln create mode 100644 Computer-Programming-and-Practice-2025-1.vcxproj create mode 100644 Computer-Programming-and-Practice-2025-1.vcxproj.filters create mode 100644 main.c diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2cf5bc1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/.vs +Computer-Programming-and-Practice-2025-1.vcxproj.user diff --git a/Computer-Programming-and-Practice-2025-1.sln b/Computer-Programming-and-Practice-2025-1.sln new file mode 100644 index 0000000..cfa80bc --- /dev/null +++ b/Computer-Programming-and-Practice-2025-1.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.13.35818.85 d17.13 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Computer-Programming-and-Practice-2025-1", "Computer-Programming-and-Practice-2025-1.vcxproj", "{56298B6A-7BCC-4AD5-857C-3AE51B8CA9FA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {56298B6A-7BCC-4AD5-857C-3AE51B8CA9FA}.Debug|x64.ActiveCfg = Debug|x64 + {56298B6A-7BCC-4AD5-857C-3AE51B8CA9FA}.Debug|x64.Build.0 = Debug|x64 + {56298B6A-7BCC-4AD5-857C-3AE51B8CA9FA}.Debug|x86.ActiveCfg = Debug|Win32 + {56298B6A-7BCC-4AD5-857C-3AE51B8CA9FA}.Debug|x86.Build.0 = Debug|Win32 + {56298B6A-7BCC-4AD5-857C-3AE51B8CA9FA}.Release|x64.ActiveCfg = Release|x64 + {56298B6A-7BCC-4AD5-857C-3AE51B8CA9FA}.Release|x64.Build.0 = Release|x64 + {56298B6A-7BCC-4AD5-857C-3AE51B8CA9FA}.Release|x86.ActiveCfg = Release|Win32 + {56298B6A-7BCC-4AD5-857C-3AE51B8CA9FA}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {7548D284-3031-4A53-8359-876BE48586E0} + EndGlobalSection +EndGlobal diff --git a/Computer-Programming-and-Practice-2025-1.vcxproj b/Computer-Programming-and-Practice-2025-1.vcxproj new file mode 100644 index 0000000..e1d6efa --- /dev/null +++ b/Computer-Programming-and-Practice-2025-1.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {56298b6a-7bcc-4ad5-857c-3ae51b8ca9fa} + ComputerProgrammingandPractice20251 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/Computer-Programming-and-Practice-2025-1.vcxproj.filters b/Computer-Programming-and-Practice-2025-1.vcxproj.filters new file mode 100644 index 0000000..3366b87 --- /dev/null +++ b/Computer-Programming-and-Practice-2025-1.vcxproj.filters @@ -0,0 +1,14 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + c + + + + + 소스 파일 + + + \ No newline at end of file diff --git a/main.c b/main.c new file mode 100644 index 0000000..8ab6291 --- /dev/null +++ b/main.c @@ -0,0 +1,8 @@ +/* �ּ� */ +// �ּ��� /*�� �����ؼ� */�� �����ϴ�. +// C99���ʹ� //�ε� �ּ��� �� �� �ֽ��ϴ�. +// //�� ���� �ּ��� ���� �������Դϴ�. + +int main() { + return 0; +} From 161bb958ec755565290ff3af25e305ebd6273626 Mon Sep 17 00:00:00 2001 From: chaebkimm Date: Sun, 23 Feb 2025 23:16:48 +0900 Subject: [PATCH 2/7] Update main.c --- main.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 8ab6291..6c79fa7 100644 --- a/main.c +++ b/main.c @@ -1,8 +1,14 @@ -/* �ּ� */ -// �ּ��� /*�� �����ؼ� */�� �����ϴ�. -// C99���ʹ� //�ε� �ּ��� �� �� �ֽ��ϴ�. -// //�� ���� �ּ��� ���� �������Դϴ�. +/* 함수 실행 */ +/* + 이름이 five고, 입력값이 없는 함수를 실행하는 문법은 + five() 입니다. + 함수를 실행하고나면 결과값을 얻습니다. + 결과값을 값 대신에 쓸 수 있습니다. +*/ + +/* To Do: 5를 결과값으로 반환하는 five 함수를 정의하기 */ int main() { + /* To Do: 결과값을 five 함수의 실행 결과로 바꾸기 */ return 0; } From 2926d041cc9ebb236f005c7eaa688488b2ac3c8d Mon Sep 17 00:00:00 2001 From: chaebkimm Date: Sun, 23 Feb 2025 23:33:54 +0900 Subject: [PATCH 3/7] Update .gitignore --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2cf5bc1..bc46f2c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -/.vs +*/* Computer-Programming-and-Practice-2025-1.vcxproj.user From 95c4f5f15edd92bf2dacbd93cc16f49fe97a8f59 Mon Sep 17 00:00:00 2001 From: chaebkimm Date: Mon, 24 Feb 2025 17:21:25 +0900 Subject: [PATCH 4/7] Update main.c --- main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 6c79fa7..e865e41 100644 --- a/main.c +++ b/main.c @@ -1,7 +1,8 @@ -/* 함수 실행 */ +/* 함수 선언 */ /* - 이름이 five고, 입력값이 없는 함수를 실행하는 문법은 - five() 입니다. + 소스 파일에 함수에 대한 정의가 있더라도, + 함수를 실행하는 문장 뒤에 있는 경우 + C 함수를 실행하고나면 결과값을 얻습니다. 결과값을 값 대신에 쓸 수 있습니다. */ From 9a2d2d0c9927d4335d601b0499f9d76a548ec967 Mon Sep 17 00:00:00 2001 From: chaebkimm Date: Mon, 24 Feb 2025 17:31:38 +0900 Subject: [PATCH 5/7] Update main.c --- main.c | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/main.c b/main.c index e865e41..804153f 100644 --- a/main.c +++ b/main.c @@ -1,15 +1,25 @@ /* 함수 선언 */ /* - 소스 파일에 함수에 대한 정의가 있더라도, - 함수를 실행하는 문장 뒤에 있는 경우 - C - 함수를 실행하고나면 결과값을 얻습니다. - 결과값을 값 대신에 쓸 수 있습니다. + 함수 정의가 함수 실행 문장 뒤에 있는 경우, + 함수 실행 문장에서 함수를 확인할 수 없습니다. + 이런 경우에 함수 선언을 통해 함수의 + 이름, 입력값 종류, 출력값 종류를 정해놓습니다. + 함수 정의는 보통 소스 파일의 가장 앞에서 합니다. */ -/* To Do: 5를 결과값으로 반환하는 five 함수를 정의하기 */ +/* To Do: 5를 결과값으로 반환하고, 입력값이 없는 five 함수를 선언하기 */ int main() { - /* To Do: 결과값을 five 함수의 실행 결과로 바꾸기 */ - return 0; + return five(); +} + +/* + 함수 이름: five + 입력값: 없음 + 출력값: int + + five()는 5를 결과값으로 반환한다. +*/ +int five() { + return 5; } From b19bbbe10c633ff007591181c0efa76620ff844f Mon Sep 17 00:00:00 2001 From: chaebkimm Date: Mon, 24 Feb 2025 17:46:04 +0900 Subject: [PATCH 6/7] Update main.c --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 804153f..e7c3387 100644 --- a/main.c +++ b/main.c @@ -4,7 +4,7 @@ 함수 실행 문장에서 함수를 확인할 수 없습니다. 이런 경우에 함수 선언을 통해 함수의 이름, 입력값 종류, 출력값 종류를 정해놓습니다. - 함수 정의는 보통 소스 파일의 가장 앞에서 합니다. + 함수 선언은 보통 소스 파일의 가장 앞에서 합니다. */ /* To Do: 5를 결과값으로 반환하고, 입력값이 없는 five 함수를 선언하기 */ From fb0012a4faaf069eda0a5099f47c265715ba6b7f Mon Sep 17 00:00:00 2001 From: cm-3c_cd_93_7A_83_9C Date: Fri, 14 Mar 2025 15:13:52 +0900 Subject: [PATCH 7/7] Create Project-Function-Calls-No-Parameter.vcxproj.user --- Project-Function-Calls-No-Parameter.vcxproj.user | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Project-Function-Calls-No-Parameter.vcxproj.user diff --git a/Project-Function-Calls-No-Parameter.vcxproj.user b/Project-Function-Calls-No-Parameter.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/Project-Function-Calls-No-Parameter.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file