commit 121d4a1c90147834d1f44798a78986461709558e Author: Launchcore Date: Thu Oct 19 11:48:05 2023 +0800 2023-10-19 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8ada255 --- /dev/null +++ b/.gitignore @@ -0,0 +1,702 @@ +### C++ template +# Prerequisites +*.d + +# Compiled Object files +*.slo +*.lo +*.o +*.obj + +# Precompiled Headers +*.gch +*.pch + +# Compiled Dynamic libraries +*.so +*.dylib +*.dll + +# Fortran module files +*.mod +*.smod + +# Compiled Static libraries +*.lai +*.la +*.a +*.lib + +# Executables +*.exe +*.out +*.app + +### VisualStudioCode template +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets + +# Local History for Visual Studio Code +.history/ + +# Built Visual Studio Code Extensions +*.vsix + +### MicrosoftOffice template +*.tmp + +# Word temporary +~$*.doc* + +# Word Auto Backup File +Backup of *.doc* + +# Excel temporary +~$*.xls* + +# Excel Backup File +*.xlk + +# PowerPoint temporary +~$*.ppt* + +# Visio autosave temporary files +*.~vsd* + +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# AWS User-specific +.idea/**/aws.xml + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# SonarLint plugin +.idea/sonarlint/ + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +### Linux template +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* + +### CMake template +CMakeLists.txt.user +CMakeCache.txt +CMakeFiles +CMakeScripts +Testing +Makefile +cmake_install.cmake +install_manifest.txt +compile_commands.json +CTestTestfile.cmake +_deps + +### Emacs template +# -*- mode: gitignore; -*- +*~ +\#*\# +/.emacs.desktop +/.emacs.desktop.lock +*.elc +auto-save-list +tramp +.\#* + +# Org-mode +.org-id-locations +*_archive + +# flymake-mode +*_flymake.* + +# eshell files +/eshell/history +/eshell/lastdir + +# elpa packages +/elpa/ + +# reftex files +*.rel + +# AUCTeX auto folder +/auto/ + +# cask packages +.cask/ +dist/ + +# Flycheck +flycheck_*.el + +# server auth directory +/server/ + +# projectiles files +.projectile + +# directory configuration +.dir-locals.el + +# network security +/network-security.data + + +### VisualStudio template +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.tlog +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio 6 auto-generated project file (contains which files were open etc.) +*.vbp + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files +*.ncb +*.aps + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# Visual Studio History (VSHistory) files +.vshistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +# Windows Installer files from build outputs +*.cab +*.msi +*.msix +*.msm +*.msp + +# JetBrains Rider +*.sln.iml + +### Windows template +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +### Vim template +# Swap +[._]*.s[a-v][a-z] +!*.svg # comment out if you don't need vector files +[._]*.sw[a-p] +[._]s[a-rt-v][a-z] +[._]ss[a-gi-z] +[._]sw[a-p] + +# Session +Session.vim +Sessionx.vim + +# Temporary +.netrwhist +*~ +# Auto-generated tag files +tags +# Persistent undo +[._]*.un~ + +### macOS template +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + diff --git a/Classwork1/Classwork1.sln b/Classwork1/Classwork1.sln new file mode 100644 index 0000000..8d8b920 --- /dev/null +++ b/Classwork1/Classwork1.sln @@ -0,0 +1,61 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.7.34031.279 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "S1_1", "S1_1\S1_1.vcxproj", "{2D54F9A6-3056-4E6B-A197-3D411285C123}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "S1_2", "S1_2\S1_2.vcxproj", "{6024F0DD-B882-4CBC-A3B5-3B82360F8BE8}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "S1_3", "S1_3\S1_3.vcxproj", "{0E156D89-D704-48A4-A9F6-381106D2C87C}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "S1_4", "S1_4\S1_4.vcxproj", "{A3F6DEBC-76A7-4C3E-BEA3-03A56EC4DA4E}" +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 + {2D54F9A6-3056-4E6B-A197-3D411285C123}.Debug|x64.ActiveCfg = Debug|x64 + {2D54F9A6-3056-4E6B-A197-3D411285C123}.Debug|x64.Build.0 = Debug|x64 + {2D54F9A6-3056-4E6B-A197-3D411285C123}.Debug|x86.ActiveCfg = Debug|Win32 + {2D54F9A6-3056-4E6B-A197-3D411285C123}.Debug|x86.Build.0 = Debug|Win32 + {2D54F9A6-3056-4E6B-A197-3D411285C123}.Release|x64.ActiveCfg = Release|x64 + {2D54F9A6-3056-4E6B-A197-3D411285C123}.Release|x64.Build.0 = Release|x64 + {2D54F9A6-3056-4E6B-A197-3D411285C123}.Release|x86.ActiveCfg = Release|Win32 + {2D54F9A6-3056-4E6B-A197-3D411285C123}.Release|x86.Build.0 = Release|Win32 + {6024F0DD-B882-4CBC-A3B5-3B82360F8BE8}.Debug|x64.ActiveCfg = Debug|x64 + {6024F0DD-B882-4CBC-A3B5-3B82360F8BE8}.Debug|x64.Build.0 = Debug|x64 + {6024F0DD-B882-4CBC-A3B5-3B82360F8BE8}.Debug|x86.ActiveCfg = Debug|Win32 + {6024F0DD-B882-4CBC-A3B5-3B82360F8BE8}.Debug|x86.Build.0 = Debug|Win32 + {6024F0DD-B882-4CBC-A3B5-3B82360F8BE8}.Release|x64.ActiveCfg = Release|x64 + {6024F0DD-B882-4CBC-A3B5-3B82360F8BE8}.Release|x64.Build.0 = Release|x64 + {6024F0DD-B882-4CBC-A3B5-3B82360F8BE8}.Release|x86.ActiveCfg = Release|Win32 + {6024F0DD-B882-4CBC-A3B5-3B82360F8BE8}.Release|x86.Build.0 = Release|Win32 + {0E156D89-D704-48A4-A9F6-381106D2C87C}.Debug|x64.ActiveCfg = Debug|x64 + {0E156D89-D704-48A4-A9F6-381106D2C87C}.Debug|x64.Build.0 = Debug|x64 + {0E156D89-D704-48A4-A9F6-381106D2C87C}.Debug|x86.ActiveCfg = Debug|Win32 + {0E156D89-D704-48A4-A9F6-381106D2C87C}.Debug|x86.Build.0 = Debug|Win32 + {0E156D89-D704-48A4-A9F6-381106D2C87C}.Release|x64.ActiveCfg = Release|x64 + {0E156D89-D704-48A4-A9F6-381106D2C87C}.Release|x64.Build.0 = Release|x64 + {0E156D89-D704-48A4-A9F6-381106D2C87C}.Release|x86.ActiveCfg = Release|Win32 + {0E156D89-D704-48A4-A9F6-381106D2C87C}.Release|x86.Build.0 = Release|Win32 + {A3F6DEBC-76A7-4C3E-BEA3-03A56EC4DA4E}.Debug|x64.ActiveCfg = Debug|x64 + {A3F6DEBC-76A7-4C3E-BEA3-03A56EC4DA4E}.Debug|x64.Build.0 = Debug|x64 + {A3F6DEBC-76A7-4C3E-BEA3-03A56EC4DA4E}.Debug|x86.ActiveCfg = Debug|Win32 + {A3F6DEBC-76A7-4C3E-BEA3-03A56EC4DA4E}.Debug|x86.Build.0 = Debug|Win32 + {A3F6DEBC-76A7-4C3E-BEA3-03A56EC4DA4E}.Release|x64.ActiveCfg = Release|x64 + {A3F6DEBC-76A7-4C3E-BEA3-03A56EC4DA4E}.Release|x64.Build.0 = Release|x64 + {A3F6DEBC-76A7-4C3E-BEA3-03A56EC4DA4E}.Release|x86.ActiveCfg = Release|Win32 + {A3F6DEBC-76A7-4C3E-BEA3-03A56EC4DA4E}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {98BD10E0-D308-477E-8EBE-DE9FB301B34C} + EndGlobalSection +EndGlobal diff --git a/Classwork1/S1_1/S1_1.cpp b/Classwork1/S1_1/S1_1.cpp new file mode 100644 index 0000000..6ea4de7 --- /dev/null +++ b/Classwork1/S1_1/S1_1.cpp @@ -0,0 +1,11 @@ +#include +using namespace std; +int main() +{ + int a, b, sum; + cout << "뱻\n"; + cin >> a >> b; + sum = a + b; + cout << "sum=" << sum << endl; + return 0; +} \ No newline at end of file diff --git a/Classwork1/S1_1/S1_1.vcxproj b/Classwork1/S1_1/S1_1.vcxproj new file mode 100644 index 0000000..beb27da --- /dev/null +++ b/Classwork1/S1_1/S1_1.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {2d54f9a6-3056-4e6b-a197-3d411285c123} + S11 + 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/Classwork1/S1_1/S1_1.vcxproj.filters b/Classwork1/S1_1/S1_1.vcxproj.filters new file mode 100644 index 0000000..a6ffe00 --- /dev/null +++ b/Classwork1/S1_1/S1_1.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/Classwork1/S1_2/S1_2.cpp b/Classwork1/S1_2/S1_2.cpp new file mode 100644 index 0000000..01b9bd2 --- /dev/null +++ b/Classwork1/S1_2/S1_2.cpp @@ -0,0 +1,11 @@ +#include +using namespace std; +int main() +{ + double f, c; + cout << "뻪¶ȣ"; + cin >> f; + c = double(5) / 9 * (f - 32); + cout << "¶=" << c << endl; + return 0; +} \ No newline at end of file diff --git a/Classwork1/S1_2/S1_2.vcxproj b/Classwork1/S1_2/S1_2.vcxproj new file mode 100644 index 0000000..cc0aaa3 --- /dev/null +++ b/Classwork1/S1_2/S1_2.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {6024f0dd-b882-4cbc-a3b5-3b82360f8be8} + S12 + 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/Classwork1/S1_2/S1_2.vcxproj.filters b/Classwork1/S1_2/S1_2.vcxproj.filters new file mode 100644 index 0000000..284b927 --- /dev/null +++ b/Classwork1/S1_2/S1_2.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/Classwork1/S1_3/S1_3.cpp b/Classwork1/S1_3/S1_3.cpp new file mode 100644 index 0000000..ae154e0 --- /dev/null +++ b/Classwork1/S1_3/S1_3.cpp @@ -0,0 +1,12 @@ +#include +using namespace std; +int main() +{ + const double pi = 3.14159; + double s, r; + cout << "Բ뾶"; + cin >> r; + s = pi * r * r; + cout << "ԲΪ" << s << endl; + return 0; +} \ No newline at end of file diff --git a/Classwork1/S1_3/S1_3.vcxproj b/Classwork1/S1_3/S1_3.vcxproj new file mode 100644 index 0000000..887e906 --- /dev/null +++ b/Classwork1/S1_3/S1_3.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {0e156d89-d704-48a4-a9f6-381106d2c87c} + S13 + 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/Classwork1/S1_3/S1_3.vcxproj.filters b/Classwork1/S1_3/S1_3.vcxproj.filters new file mode 100644 index 0000000..0a6ca6c --- /dev/null +++ b/Classwork1/S1_3/S1_3.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/Classwork1/S1_4/S1_4.cpp b/Classwork1/S1_4/S1_4.cpp new file mode 100644 index 0000000..0abf80f --- /dev/null +++ b/Classwork1/S1_4/S1_4.cpp @@ -0,0 +1,13 @@ +#include +#include +using namespace std; +int main() +{ + double a, b, c, s, area; + cout << "ε߳ȣ"; + cin >> a >> b >> c; + s = a + b + c; + area = sqrt(s / 2 * (s / 2 - a) * (s / 2 - b) * (s / 2 - c)); + cout << "ܳΪ" << s << "Ϊ" << area << endl; + return 0; +} diff --git a/Classwork1/S1_4/S1_4.vcxproj b/Classwork1/S1_4/S1_4.vcxproj new file mode 100644 index 0000000..a09b1c7 --- /dev/null +++ b/Classwork1/S1_4/S1_4.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {a3f6debc-76a7-4c3e-bea3-03a56ec4da4e} + S14 + 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/Classwork1/S1_4/S1_4.vcxproj.filters b/Classwork1/S1_4/S1_4.vcxproj.filters new file mode 100644 index 0000000..0900c21 --- /dev/null +++ b/Classwork1/S1_4/S1_4.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/Classwork1/实验报告.doc b/Classwork1/实验报告.doc new file mode 100644 index 0000000..834a8bc Binary files /dev/null and b/Classwork1/实验报告.doc differ diff --git a/Classwork2/Classwork2.sln b/Classwork2/Classwork2.sln new file mode 100644 index 0000000..0559554 --- /dev/null +++ b/Classwork2/Classwork2.sln @@ -0,0 +1,71 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.7.34031.279 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "S2_1", "S2_1\S2_1.vcxproj", "{27E2B03F-B2CB-4198-95AE-CA532187917B}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "S2_2", "S2_2\S2_2.vcxproj", "{64F4A8F0-A784-49C0-97E5-255159BFC45F}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "S2_3", "S2_3\S2_3.vcxproj", "{A53C9E21-D56E-490B-87B3-964EE6030A80}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "S2_4", "S2_4\S2_4.vcxproj", "{CEC5C39D-4AC5-4C2B-96B6-47389BE71FC1}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "S2_5", "S2_5\S2_5.vcxproj", "{260D6D01-A20E-41C2-A957-976FCB50BDAF}" +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 + {27E2B03F-B2CB-4198-95AE-CA532187917B}.Debug|x64.ActiveCfg = Debug|x64 + {27E2B03F-B2CB-4198-95AE-CA532187917B}.Debug|x64.Build.0 = Debug|x64 + {27E2B03F-B2CB-4198-95AE-CA532187917B}.Debug|x86.ActiveCfg = Debug|Win32 + {27E2B03F-B2CB-4198-95AE-CA532187917B}.Debug|x86.Build.0 = Debug|Win32 + {27E2B03F-B2CB-4198-95AE-CA532187917B}.Release|x64.ActiveCfg = Release|x64 + {27E2B03F-B2CB-4198-95AE-CA532187917B}.Release|x64.Build.0 = Release|x64 + {27E2B03F-B2CB-4198-95AE-CA532187917B}.Release|x86.ActiveCfg = Release|Win32 + {27E2B03F-B2CB-4198-95AE-CA532187917B}.Release|x86.Build.0 = Release|Win32 + {64F4A8F0-A784-49C0-97E5-255159BFC45F}.Debug|x64.ActiveCfg = Debug|x64 + {64F4A8F0-A784-49C0-97E5-255159BFC45F}.Debug|x64.Build.0 = Debug|x64 + {64F4A8F0-A784-49C0-97E5-255159BFC45F}.Debug|x86.ActiveCfg = Debug|Win32 + {64F4A8F0-A784-49C0-97E5-255159BFC45F}.Debug|x86.Build.0 = Debug|Win32 + {64F4A8F0-A784-49C0-97E5-255159BFC45F}.Release|x64.ActiveCfg = Release|x64 + {64F4A8F0-A784-49C0-97E5-255159BFC45F}.Release|x64.Build.0 = Release|x64 + {64F4A8F0-A784-49C0-97E5-255159BFC45F}.Release|x86.ActiveCfg = Release|Win32 + {64F4A8F0-A784-49C0-97E5-255159BFC45F}.Release|x86.Build.0 = Release|Win32 + {A53C9E21-D56E-490B-87B3-964EE6030A80}.Debug|x64.ActiveCfg = Debug|x64 + {A53C9E21-D56E-490B-87B3-964EE6030A80}.Debug|x64.Build.0 = Debug|x64 + {A53C9E21-D56E-490B-87B3-964EE6030A80}.Debug|x86.ActiveCfg = Debug|Win32 + {A53C9E21-D56E-490B-87B3-964EE6030A80}.Debug|x86.Build.0 = Debug|Win32 + {A53C9E21-D56E-490B-87B3-964EE6030A80}.Release|x64.ActiveCfg = Release|x64 + {A53C9E21-D56E-490B-87B3-964EE6030A80}.Release|x64.Build.0 = Release|x64 + {A53C9E21-D56E-490B-87B3-964EE6030A80}.Release|x86.ActiveCfg = Release|Win32 + {A53C9E21-D56E-490B-87B3-964EE6030A80}.Release|x86.Build.0 = Release|Win32 + {CEC5C39D-4AC5-4C2B-96B6-47389BE71FC1}.Debug|x64.ActiveCfg = Debug|x64 + {CEC5C39D-4AC5-4C2B-96B6-47389BE71FC1}.Debug|x64.Build.0 = Debug|x64 + {CEC5C39D-4AC5-4C2B-96B6-47389BE71FC1}.Debug|x86.ActiveCfg = Debug|Win32 + {CEC5C39D-4AC5-4C2B-96B6-47389BE71FC1}.Debug|x86.Build.0 = Debug|Win32 + {CEC5C39D-4AC5-4C2B-96B6-47389BE71FC1}.Release|x64.ActiveCfg = Release|x64 + {CEC5C39D-4AC5-4C2B-96B6-47389BE71FC1}.Release|x64.Build.0 = Release|x64 + {CEC5C39D-4AC5-4C2B-96B6-47389BE71FC1}.Release|x86.ActiveCfg = Release|Win32 + {CEC5C39D-4AC5-4C2B-96B6-47389BE71FC1}.Release|x86.Build.0 = Release|Win32 + {260D6D01-A20E-41C2-A957-976FCB50BDAF}.Debug|x64.ActiveCfg = Debug|x64 + {260D6D01-A20E-41C2-A957-976FCB50BDAF}.Debug|x64.Build.0 = Debug|x64 + {260D6D01-A20E-41C2-A957-976FCB50BDAF}.Debug|x86.ActiveCfg = Debug|Win32 + {260D6D01-A20E-41C2-A957-976FCB50BDAF}.Debug|x86.Build.0 = Debug|Win32 + {260D6D01-A20E-41C2-A957-976FCB50BDAF}.Release|x64.ActiveCfg = Release|x64 + {260D6D01-A20E-41C2-A957-976FCB50BDAF}.Release|x64.Build.0 = Release|x64 + {260D6D01-A20E-41C2-A957-976FCB50BDAF}.Release|x86.ActiveCfg = Release|Win32 + {260D6D01-A20E-41C2-A957-976FCB50BDAF}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {7D9D7F9E-2424-40B9-80F0-4AE51A5684A8} + EndGlobalSection +EndGlobal diff --git a/Classwork2/S2_1/S2_1.cpp b/Classwork2/S2_1/S2_1.cpp new file mode 100644 index 0000000..d601571 --- /dev/null +++ b/Classwork2/S2_1/S2_1.cpp @@ -0,0 +1,16 @@ +#include +using namespace std; +int main() +{ + float a, b, c; + cout << "input a b c\n"; + cin >> a >> b >> c; + if ((a + b <= c) || (a + c <= b) || (b + c <= a)) + cout << "Not Triangle\n"; + else + cout << "Triangle\n"; + return 0; +} + +// 3 4 5 -> Triangle +// 1 2 5 -> Not Triangle \ No newline at end of file diff --git a/Classwork2/S2_1/S2_1.vcxproj b/Classwork2/S2_1/S2_1.vcxproj new file mode 100644 index 0000000..4e7ab1f --- /dev/null +++ b/Classwork2/S2_1/S2_1.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {27e2b03f-b2cb-4198-95ae-ca532187917b} + S21 + 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/Classwork2/S2_1/S2_1.vcxproj.filters b/Classwork2/S2_1/S2_1.vcxproj.filters new file mode 100644 index 0000000..5097585 --- /dev/null +++ b/Classwork2/S2_1/S2_1.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/Classwork2/S2_2/S2_2.cpp b/Classwork2/S2_2/S2_2.cpp new file mode 100644 index 0000000..cdc77c2 --- /dev/null +++ b/Classwork2/S2_2/S2_2.cpp @@ -0,0 +1,16 @@ +#include +using namespace std; +int main() +{ + int year; + cout << "Input year: "; + cin >> year; + if (year % 400 == 0 || (year % 4 == 0 && year % 100 != 0)) + cout << year << " is a leap year" << endl; + else + cout << year << " isn\'t a leap year" << endl; + return 0; +} + +// 2000 -> 2000 is a leap year +// 2200 -> 2200 isn't a leap year \ No newline at end of file diff --git a/Classwork2/S2_2/S2_2.vcxproj b/Classwork2/S2_2/S2_2.vcxproj new file mode 100644 index 0000000..c8af354 --- /dev/null +++ b/Classwork2/S2_2/S2_2.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {64f4a8f0-a784-49c0-97e5-255159bfc45f} + S22 + 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/Classwork2/S2_2/S2_2.vcxproj.filters b/Classwork2/S2_2/S2_2.vcxproj.filters new file mode 100644 index 0000000..ccc75a1 --- /dev/null +++ b/Classwork2/S2_2/S2_2.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/Classwork2/S2_3/S2_3.cpp b/Classwork2/S2_3/S2_3.cpp new file mode 100644 index 0000000..56b4e0d --- /dev/null +++ b/Classwork2/S2_3/S2_3.cpp @@ -0,0 +1,33 @@ +#include +using namespace std; +int main() +{ + float a1, a2; + char oper; + float result; + int flag = 0; + cout << "򵥵ʽ\n"; + cin >> a1 >> oper >> a2; + switch (oper) + { + case '+': + result = a1 + a2; + break; + case '-': + result = a1 - a2; + break; + case '*': + result = a1 * a2; + break; + default: + cout << "!\n"; + flag = 1; + } + if (flag == 0) + cout << a1 << oper << a2 << " = " << result << endl; + return 0; +} + +// 4.5+7.2 -> 4.5+7.2 = 11.7 +// 4*5 -> 4*5 = 20 +// 8/2 -> ! \ No newline at end of file diff --git a/Classwork2/S2_3/S2_3.vcxproj b/Classwork2/S2_3/S2_3.vcxproj new file mode 100644 index 0000000..e45423c --- /dev/null +++ b/Classwork2/S2_3/S2_3.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {a53c9e21-d56e-490b-87b3-964ee6030a80} + S23 + 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/Classwork2/S2_3/S2_3.vcxproj.filters b/Classwork2/S2_3/S2_3.vcxproj.filters new file mode 100644 index 0000000..fac6109 --- /dev/null +++ b/Classwork2/S2_3/S2_3.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/Classwork2/S2_4/S2_4.cpp b/Classwork2/S2_4/S2_4.cpp new file mode 100644 index 0000000..7ef0894 --- /dev/null +++ b/Classwork2/S2_4/S2_4.cpp @@ -0,0 +1,18 @@ +#include +#include +using namespace std; +int main() +{ + int a, b, c; + cin >> a >> b >> c; + int delta = b * b - 4 * a * c; + if (delta < 0) + cout << "ʵ" << endl; + else + { + double x1 = (-b + sqrt(delta)) / (2 * a); + double x2 = (-b - sqrt(delta)) / (2 * a); + cout << x1 << '\t' << x2 << endl; + } + return 0; +} \ No newline at end of file diff --git a/Classwork2/S2_4/S2_4.vcxproj b/Classwork2/S2_4/S2_4.vcxproj new file mode 100644 index 0000000..6a28da2 --- /dev/null +++ b/Classwork2/S2_4/S2_4.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {cec5c39d-4ac5-4c2b-96b6-47389be71fc1} + S24 + 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/Classwork2/S2_4/S2_4.vcxproj.filters b/Classwork2/S2_4/S2_4.vcxproj.filters new file mode 100644 index 0000000..c1cb067 --- /dev/null +++ b/Classwork2/S2_4/S2_4.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/Classwork2/S2_5/S2_5.cpp b/Classwork2/S2_5/S2_5.cpp new file mode 100644 index 0000000..5d780f8 --- /dev/null +++ b/Classwork2/S2_5/S2_5.cpp @@ -0,0 +1,41 @@ +#include +using namespace std; +int main() +{ + float a1, a2; + char oper; + float result; + int flag = 0; + cout << "򵥵ʽ\n"; + cin >> a1 >> oper >> a2; + switch (oper) + { + case '+': + result = a1 + a2; + break; + case '-': + result = a1 - a2; + break; + case '*': + result = a1 * a2; + break; + case '/': + if (a2 == 0) + { + cout << "Ϊ0!\n"; + flag = 1; + break; + } + else + { + result = a1 / a2; + break; + } + default: + cout << "!\n"; + flag = 1; + } + if (flag == 0) + cout << a1 << oper << a2 << " = " << result << endl; + return 0; +} diff --git a/Classwork2/S2_5/S2_5.vcxproj b/Classwork2/S2_5/S2_5.vcxproj new file mode 100644 index 0000000..b14c7c6 --- /dev/null +++ b/Classwork2/S2_5/S2_5.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {260d6d01-a20e-41c2-a957-976fcb50bdaf} + S25 + 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/Classwork2/S2_5/S2_5.vcxproj.filters b/Classwork2/S2_5/S2_5.vcxproj.filters new file mode 100644 index 0000000..b2c8964 --- /dev/null +++ b/Classwork2/S2_5/S2_5.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/Classwork2/实验报告.doc b/Classwork2/实验报告.doc new file mode 100644 index 0000000..1ff6781 Binary files /dev/null and b/Classwork2/实验报告.doc differ diff --git a/Classwork3/Classwork3.sln b/Classwork3/Classwork3.sln new file mode 100644 index 0000000..ff9c8b0 --- /dev/null +++ b/Classwork3/Classwork3.sln @@ -0,0 +1,41 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.7.34202.233 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "S3_1", "S3_1\S3_1.vcxproj", "{84E89E3B-5BD6-4B29-B28E-297337220903}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "S3_2", "S3_2\S3_2.vcxproj", "{30F15281-7360-4D9E-871A-941DC6981A9E}" +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 + {84E89E3B-5BD6-4B29-B28E-297337220903}.Debug|x64.ActiveCfg = Debug|x64 + {84E89E3B-5BD6-4B29-B28E-297337220903}.Debug|x64.Build.0 = Debug|x64 + {84E89E3B-5BD6-4B29-B28E-297337220903}.Debug|x86.ActiveCfg = Debug|Win32 + {84E89E3B-5BD6-4B29-B28E-297337220903}.Debug|x86.Build.0 = Debug|Win32 + {84E89E3B-5BD6-4B29-B28E-297337220903}.Release|x64.ActiveCfg = Release|x64 + {84E89E3B-5BD6-4B29-B28E-297337220903}.Release|x64.Build.0 = Release|x64 + {84E89E3B-5BD6-4B29-B28E-297337220903}.Release|x86.ActiveCfg = Release|Win32 + {84E89E3B-5BD6-4B29-B28E-297337220903}.Release|x86.Build.0 = Release|Win32 + {30F15281-7360-4D9E-871A-941DC6981A9E}.Debug|x64.ActiveCfg = Debug|x64 + {30F15281-7360-4D9E-871A-941DC6981A9E}.Debug|x64.Build.0 = Debug|x64 + {30F15281-7360-4D9E-871A-941DC6981A9E}.Debug|x86.ActiveCfg = Debug|Win32 + {30F15281-7360-4D9E-871A-941DC6981A9E}.Debug|x86.Build.0 = Debug|Win32 + {30F15281-7360-4D9E-871A-941DC6981A9E}.Release|x64.ActiveCfg = Release|x64 + {30F15281-7360-4D9E-871A-941DC6981A9E}.Release|x64.Build.0 = Release|x64 + {30F15281-7360-4D9E-871A-941DC6981A9E}.Release|x86.ActiveCfg = Release|Win32 + {30F15281-7360-4D9E-871A-941DC6981A9E}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {60CADFFA-11C5-4556-9066-636962E2583D} + EndGlobalSection +EndGlobal diff --git a/Classwork3/S3_1/S3_1.cpp b/Classwork3/S3_1/S3_1.cpp new file mode 100644 index 0000000..57c280b --- /dev/null +++ b/Classwork3/S3_1/S3_1.cpp @@ -0,0 +1,15 @@ +#include +using namespace std; +int main() +{ + int x, y; + for (x = 1; x < 30; x++) + for (y = 1; y < 30; y++) + if (2 * x + 4 * y == 90 && x + y == 30) + { + cout << "У" << x << '\t' << "У" << y << endl; + } + return 0; +} + +// У15 У15 \ No newline at end of file diff --git a/Classwork3/S3_1/S3_1.vcxproj b/Classwork3/S3_1/S3_1.vcxproj new file mode 100644 index 0000000..ed1b42a --- /dev/null +++ b/Classwork3/S3_1/S3_1.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {84e89e3b-5bd6-4b29-b28e-297337220903} + S31 + 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/Classwork3/S3_1/S3_1.vcxproj.filters b/Classwork3/S3_1/S3_1.vcxproj.filters new file mode 100644 index 0000000..67c5350 --- /dev/null +++ b/Classwork3/S3_1/S3_1.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/Classwork3/S3_2/S3_2.cpp b/Classwork3/S3_2/S3_2.cpp new file mode 100644 index 0000000..2f97fc8 --- /dev/null +++ b/Classwork3/S3_2/S3_2.cpp @@ -0,0 +1,21 @@ +#include +using namespace std; +int main() +{ + int a0, a1, a2; + int b; + for (a2 = 1; a2 <= 9; a2++) + for (a1 = 0; a1 <= 9; a1++) + for (a0 = 0; a0 <= 9; a0++) + { + b = a2 * 100 + a1 * 10 + a0; + if (b == a0 * a0 * a0 + a1 * a1 * a1 + a2 * a2 * a2) + cout << b << endl; + } + return 0; +} + +// 153 +// 370 +// 371 +// 407 \ No newline at end of file diff --git a/Classwork3/S3_2/S3_2.vcxproj b/Classwork3/S3_2/S3_2.vcxproj new file mode 100644 index 0000000..7a6ee80 --- /dev/null +++ b/Classwork3/S3_2/S3_2.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {30f15281-7360-4d9e-871a-941dc6981a9e} + S32 + 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/Classwork3/S3_2/S3_2.vcxproj.filters b/Classwork3/S3_2/S3_2.vcxproj.filters new file mode 100644 index 0000000..8a457dc --- /dev/null +++ b/Classwork3/S3_2/S3_2.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/homework231008/.idea/.gitignore b/homework231008/.idea/.gitignore new file mode 100644 index 0000000..16df27d --- /dev/null +++ b/homework231008/.idea/.gitignore @@ -0,0 +1,10 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# CodeStream ignored files +/../../homework231008\.idea/codestream.xml diff --git a/homework231008/.idea/codestream.xml b/homework231008/.idea/codestream.xml new file mode 100644 index 0000000..075a1f9 --- /dev/null +++ b/homework231008/.idea/codestream.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/homework231008/.idea/homework231008.iml b/homework231008/.idea/homework231008.iml new file mode 100644 index 0000000..f08604b --- /dev/null +++ b/homework231008/.idea/homework231008.iml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/homework231008/.idea/misc.xml b/homework231008/.idea/misc.xml new file mode 100644 index 0000000..79b3c94 --- /dev/null +++ b/homework231008/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/homework231008/.idea/modules.xml b/homework231008/.idea/modules.xml new file mode 100644 index 0000000..9486299 --- /dev/null +++ b/homework231008/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/homework231008/.idea/runConfigurations/2.xml b/homework231008/.idea/runConfigurations/2.xml new file mode 100644 index 0000000..c4df39e --- /dev/null +++ b/homework231008/.idea/runConfigurations/2.xml @@ -0,0 +1,9 @@ + + + + \ No newline at end of file diff --git a/homework231008/.idea/runConfigurations/4.xml b/homework231008/.idea/runConfigurations/4.xml new file mode 100644 index 0000000..0a33e16 --- /dev/null +++ b/homework231008/.idea/runConfigurations/4.xml @@ -0,0 +1,9 @@ + + + + \ No newline at end of file diff --git a/homework231008/.idea/runConfigurations/7.xml b/homework231008/.idea/runConfigurations/7.xml new file mode 100644 index 0000000..5d43911 --- /dev/null +++ b/homework231008/.idea/runConfigurations/7.xml @@ -0,0 +1,9 @@ + + + + \ No newline at end of file diff --git a/homework231008/.idea/runConfigurations/9_1.xml b/homework231008/.idea/runConfigurations/9_1.xml new file mode 100644 index 0000000..07ebef7 --- /dev/null +++ b/homework231008/.idea/runConfigurations/9_1.xml @@ -0,0 +1,9 @@ + + + + \ No newline at end of file diff --git a/homework231008/.idea/runConfigurations/9_2.xml b/homework231008/.idea/runConfigurations/9_2.xml new file mode 100644 index 0000000..163e51e --- /dev/null +++ b/homework231008/.idea/runConfigurations/9_2.xml @@ -0,0 +1,9 @@ + + + + \ No newline at end of file diff --git a/homework231008/CMakeLists.txt b/homework231008/CMakeLists.txt new file mode 100644 index 0000000..7405627 --- /dev/null +++ b/homework231008/CMakeLists.txt @@ -0,0 +1,2 @@ +cmake_minimum_required(VERSION 3.26.1) +project(homework231008) \ No newline at end of file diff --git a/homework231008/answer.txt b/homework231008/answer.txt new file mode 100644 index 0000000..1885658 --- /dev/null +++ b/homework231008/answer.txt @@ -0,0 +1,5 @@ +2. a=10, b=0 +4. 5 +7. 2 3 1 +9. (1) a % 2 == 0 || b % 2 == 0 + (2) a % 3 == 0 , b % 5 == 0 diff --git a/homework231008/src/2.cpp b/homework231008/src/2.cpp new file mode 100644 index 0000000..ba2d820 --- /dev/null +++ b/homework231008/src/2.cpp @@ -0,0 +1,14 @@ +// +// Created by Launchcore on 2023/10/8. +// +#include +using namespace std; +int main() +{ + int a = 10, b = 3; + b %= b++ || a++; + // b++ = 4, 在表达式(b++ || a++)中, b++相当于true, 此时a++不执行, a仍为10 + // b %= b++ 在此相当于 b %= true (后面整个(b++ || a++)为true), 即b = b % 1, 结果为0 + cout << a << '\t' << b << endl; + return 0; +} diff --git a/homework231008/src/4.cpp b/homework231008/src/4.cpp new file mode 100644 index 0000000..7656c96 --- /dev/null +++ b/homework231008/src/4.cpp @@ -0,0 +1,11 @@ +// +// Created by Launchcore on 2023/10/8. +// +#include +using namespace std; +int main() +{ + int a = 35, b = 6; + cout << (!a + a % b) << endl; + return 0; +} \ No newline at end of file diff --git a/homework231008/src/7.cpp b/homework231008/src/7.cpp new file mode 100644 index 0000000..ef32f3f --- /dev/null +++ b/homework231008/src/7.cpp @@ -0,0 +1,13 @@ +// +// Created by Launchcore on 2023/10/8. +// +#include +using namespace std; +int main() +{ + int a, b, c; + a = b = 1; + c = a++, b++, ++b; + cout << a << '\t' << b << '\t' << c << '\t' << endl; + return 0; +} \ No newline at end of file diff --git a/homework231008/src/9-1.cpp b/homework231008/src/9-1.cpp new file mode 100644 index 0000000..fa1096f --- /dev/null +++ b/homework231008/src/9-1.cpp @@ -0,0 +1,14 @@ +// +// Created by Launchcore on 2023/10/8. +// +#include +using namespace std; +int main() +{ + int a, b; + cin >> a; + cin >> b; + bool c = a % 2 == 0 || b % 2 == 0; + cout << c << endl; + return 0; +} \ No newline at end of file diff --git a/homework231008/src/9-2.cpp b/homework231008/src/9-2.cpp new file mode 100644 index 0000000..20334aa --- /dev/null +++ b/homework231008/src/9-2.cpp @@ -0,0 +1,14 @@ +// +// Created by Launchcore on 2023/10/8. +// +#include +using namespace std; +int main() +{ + int a, b; + cin >> a; + cin >> b; + bool c = a % 3 == 0 , d = b % 5 == 0; + cout << c << '\t' << d << endl; + return 0; +} \ No newline at end of file