diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bc46f2c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*/* +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/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 diff --git a/main.c b/main.c new file mode 100644 index 0000000..e7c3387 --- /dev/null +++ b/main.c @@ -0,0 +1,25 @@ +/* 함수 선언 */ +/* + 함수 정의가 함수 실행 문장 뒤에 있는 경우, + 함수 실행 문장에서 함수를 확인할 수 없습니다. + 이런 경우에 함수 선언을 통해 함수의 + 이름, 입력값 종류, 출력값 종류를 정해놓습니다. + 함수 선언은 보통 소스 파일의 가장 앞에서 합니다. +*/ + +/* To Do: 5를 결과값으로 반환하고, 입력값이 없는 five 함수를 선언하기 */ + +int main() { + return five(); +} + +/* + 함수 이름: five + 입력값: 없음 + 출력값: int + + five()는 5를 결과값으로 반환한다. +*/ +int five() { + return 5; +}