From 6f3b08b14d0a457aa1a0acac88de32e8c8cf4334 Mon Sep 17 00:00:00 2001 From: tomas_yang <2310384192@qq.com> Date: Tue, 23 Jan 2018 18:55:32 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E9=80=86=E8=BD=AC=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2=E2=80=94=E2=80=94=E8=BE=93=E5=85=A5=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2=EF=BC=8C=E5=B0=86=E5=85=B6=E9=80=86?= =?UTF-8?q?=E8=BD=AC=E5=B9=B6=E8=BE=93=E5=87=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitattributes | 63 ++++++++++ .gitignore | 261 ++++++++++++++++++++++++++++++++++++++++ 1/1/1.sln | 31 +++++ 1/1/1/1.vcxproj | 119 ++++++++++++++++++ 1/1/1/1.vcxproj.filters | 22 ++++ 1/1/1/main.cpp | 7 ++ 6 files changed, 503 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 1/1/1.sln create mode 100644 1/1/1/1.vcxproj create mode 100644 1/1/1/1.vcxproj.filters create mode 100644 1/1/1/main.cpp diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1ff0c42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,63 @@ +############################################################################### +# Set default behavior to automatically normalize line endings. +############################################################################### +* text=auto + +############################################################################### +# Set default behavior for command prompt diff. +# +# This is need for earlier builds of msysgit that does not have it on by +# default for csharp files. +# Note: This is only used by command line +############################################################################### +#*.cs diff=csharp + +############################################################################### +# Set the merge driver for project and solution files +# +# Merging from the command prompt will add diff markers to the files if there +# are conflicts (Merging from VS is not affected by the settings below, in VS +# the diff markers are never inserted). Diff markers may cause the following +# file extensions to fail to load in VS. An alternative would be to treat +# these files as binary and thus will always conflict and require user +# intervention with every merge. To do so, just uncomment the entries below +############################################################################### +#*.sln merge=binary +#*.csproj merge=binary +#*.vbproj merge=binary +#*.vcxproj merge=binary +#*.vcproj merge=binary +#*.dbproj merge=binary +#*.fsproj merge=binary +#*.lsproj merge=binary +#*.wixproj merge=binary +#*.modelproj merge=binary +#*.sqlproj merge=binary +#*.wwaproj merge=binary + +############################################################################### +# behavior for image files +# +# image files are treated as binary by default. +############################################################################### +#*.jpg binary +#*.png binary +#*.gif binary + +############################################################################### +# diff behavior for common document formats +# +# Convert binary document formats to text before diffing them. This feature +# is only available from the command line. Turn it on by uncommenting the +# entries below. +############################################################################### +#*.doc diff=astextplain +#*.DOC diff=astextplain +#*.docx diff=astextplain +#*.DOCX diff=astextplain +#*.dot diff=astextplain +#*.DOT diff=astextplain +#*.pdf diff=astextplain +#*.PDF diff=astextplain +#*.rtf diff=astextplain +#*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c4efe2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,261 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +# Visual Studio 2015 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# DNX +project.lock.json +project.fragment.lock.json +artifacts/ + +*_i.c +*_p.c +*_i.h +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.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 + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# 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 +# TODO: 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 +# The packages folder can be ignored because of Package Restore +**/packages/* +# except build/, which is used as an MSBuild target. +!**/packages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/packages/repositories.config +# NuGet v3's project.json files produces more ignoreable 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 + +# 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 +node_modules/ +orleans.codegen.cs + +# 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 + +# SQL Server files +*.mdf +*.ldf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# 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/ + +# JetBrains Rider +.idea/ +*.sln.iml + +# CodeRush +.cr/ + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc \ No newline at end of file diff --git a/1/1/1.sln b/1/1/1.sln new file mode 100644 index 0000000..2ec2f76 --- /dev/null +++ b/1/1/1.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27004.2009 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "1", "1\1.vcxproj", "{5834B115-B0D7-4268-A917-9887DCB13C5F}" +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 + {5834B115-B0D7-4268-A917-9887DCB13C5F}.Debug|x64.ActiveCfg = Debug|x64 + {5834B115-B0D7-4268-A917-9887DCB13C5F}.Debug|x64.Build.0 = Debug|x64 + {5834B115-B0D7-4268-A917-9887DCB13C5F}.Debug|x86.ActiveCfg = Debug|Win32 + {5834B115-B0D7-4268-A917-9887DCB13C5F}.Debug|x86.Build.0 = Debug|Win32 + {5834B115-B0D7-4268-A917-9887DCB13C5F}.Release|x64.ActiveCfg = Release|x64 + {5834B115-B0D7-4268-A917-9887DCB13C5F}.Release|x64.Build.0 = Release|x64 + {5834B115-B0D7-4268-A917-9887DCB13C5F}.Release|x86.ActiveCfg = Release|Win32 + {5834B115-B0D7-4268-A917-9887DCB13C5F}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {76A26186-48D4-4402-B12B-1C7D44FCD1DB} + EndGlobalSection +EndGlobal diff --git a/1/1/1/1.vcxproj b/1/1/1/1.vcxproj new file mode 100644 index 0000000..728da82 --- /dev/null +++ b/1/1/1/1.vcxproj @@ -0,0 +1,119 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 15.0 + {5834B115-B0D7-4268-A917-9887DCB13C5F} + My1 + 10.0.16299.0 + + + + Application + true + v141 + MultiByte + + + Application + false + v141 + true + MultiByte + + + Application + true + v141 + MultiByte + + + Application + false + v141 + true + MultiByte + + + + + + + + + + + + + + + + + + + + + + + Level3 + Disabled + true + + + + + Level3 + Disabled + true + + + + + Level3 + MaxSpeed + true + true + true + + + true + true + + + + + Level3 + MaxSpeed + true + true + true + + + true + true + + + + + + + + + \ No newline at end of file diff --git a/1/1/1/1.vcxproj.filters b/1/1/1/1.vcxproj.filters new file mode 100644 index 0000000..203a71c --- /dev/null +++ b/1/1/1/1.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;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/1/1/1/main.cpp b/1/1/1/main.cpp new file mode 100644 index 0000000..f1ed99b --- /dev/null +++ b/1/1/1/main.cpp @@ -0,0 +1,7 @@ +//��ת�ַ�����������һ���ַ�����������ת������� +#include +using namespace std; +int main() +{ + return 0; +} \ No newline at end of file From 6a90d0da1d3771330f1a55c22ad5c5b93363545a Mon Sep 17 00:00:00 2001 From: tomas_yang <2310384192@qq.com> Date: Tue, 23 Jan 2018 21:40:34 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=99=9A=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1/1/1/main.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/1/1/1/main.cpp b/1/1/1/main.cpp index f1ed99b..c532d68 100644 --- a/1/1/1/main.cpp +++ b/1/1/1/main.cpp @@ -1,7 +1,21 @@ //��ת�ַ�����������һ���ַ�����������ת������� #include +#include using namespace std; int main() { + string str,str1; + cin >> str; + int str_number = str.size(); + cout << str_number< Date: Wed, 24 Jan 2018 21:39:10 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E5=AE=8C=E6=88=90=E9=80=86=E8=BD=AC?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1/1/1/main.cpp | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/1/1/1/main.cpp b/1/1/1/main.cpp index c532d68..832115d 100644 --- a/1/1/1/main.cpp +++ b/1/1/1/main.cpp @@ -1,21 +1,17 @@ //��ת�ַ�����������һ���ַ�����������ת������� #include #include +#include using namespace std; int main() { - string str,str1; - cin >> str; - int str_number = str.size(); - cout << str_number<> str; + wstring str_copy(str.rbegin(), str.rend()); + wcout << str_copy << endl; return 0; -//TODO(tomas 18_1_23)���ж��Ƿ��������ַ������Լ����������ת��� } From 0d50fddb2227b965227fb6885c78132b20de7297 Mon Sep 17 00:00:00 2001 From: tomas_yang <2310384192@qq.com> Date: Wed, 31 Jan 2018 10:17:51 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E6=8B=89=E4=B8=81=E7=8C=AA=E6=96=87?= =?UTF-8?q?=E5=AD=97=E6=B8=B8=E6=88=8F=E5=AE=8C=E6=88=90=EF=BC=8C=E5=BE=85?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1/1/1.sln | 10 +++ 1/1/Project2/Project2.vcxproj | 119 ++++++++++++++++++++++++++ 1/1/Project2/Project2.vcxproj.filters | 22 +++++ 1/1/Project2/main.cpp | 23 +++++ 4 files changed, 174 insertions(+) create mode 100644 1/1/Project2/Project2.vcxproj create mode 100644 1/1/Project2/Project2.vcxproj.filters create mode 100644 1/1/Project2/main.cpp diff --git a/1/1/1.sln b/1/1/1.sln index 2ec2f76..a68ab88 100644 --- a/1/1/1.sln +++ b/1/1/1.sln @@ -5,6 +5,8 @@ VisualStudioVersion = 15.0.27004.2009 MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "1", "1\1.vcxproj", "{5834B115-B0D7-4268-A917-9887DCB13C5F}" EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Project2", "Project2\Project2.vcxproj", "{118CCF2B-A9A7-4E35-AC65-FEA43D883A39}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x64 = Debug|x64 @@ -21,6 +23,14 @@ Global {5834B115-B0D7-4268-A917-9887DCB13C5F}.Release|x64.Build.0 = Release|x64 {5834B115-B0D7-4268-A917-9887DCB13C5F}.Release|x86.ActiveCfg = Release|Win32 {5834B115-B0D7-4268-A917-9887DCB13C5F}.Release|x86.Build.0 = Release|Win32 + {118CCF2B-A9A7-4E35-AC65-FEA43D883A39}.Debug|x64.ActiveCfg = Debug|x64 + {118CCF2B-A9A7-4E35-AC65-FEA43D883A39}.Debug|x64.Build.0 = Debug|x64 + {118CCF2B-A9A7-4E35-AC65-FEA43D883A39}.Debug|x86.ActiveCfg = Debug|Win32 + {118CCF2B-A9A7-4E35-AC65-FEA43D883A39}.Debug|x86.Build.0 = Debug|Win32 + {118CCF2B-A9A7-4E35-AC65-FEA43D883A39}.Release|x64.ActiveCfg = Release|x64 + {118CCF2B-A9A7-4E35-AC65-FEA43D883A39}.Release|x64.Build.0 = Release|x64 + {118CCF2B-A9A7-4E35-AC65-FEA43D883A39}.Release|x86.ActiveCfg = Release|Win32 + {118CCF2B-A9A7-4E35-AC65-FEA43D883A39}.Release|x86.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/1/1/Project2/Project2.vcxproj b/1/1/Project2/Project2.vcxproj new file mode 100644 index 0000000..f86dd5b --- /dev/null +++ b/1/1/Project2/Project2.vcxproj @@ -0,0 +1,119 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 15.0 + {118CCF2B-A9A7-4E35-AC65-FEA43D883A39} + Project2 + 10.0.16299.0 + + + + Application + true + v141 + MultiByte + + + Application + false + v141 + true + MultiByte + + + Application + true + v141 + MultiByte + + + Application + false + v141 + true + MultiByte + + + + + + + + + + + + + + + + + + + + + + + Level3 + Disabled + true + + + + + Level3 + Disabled + true + + + + + Level3 + MaxSpeed + true + true + true + + + true + true + + + + + Level3 + MaxSpeed + true + true + true + + + true + true + + + + + + + + + \ No newline at end of file diff --git a/1/1/Project2/Project2.vcxproj.filters b/1/1/Project2/Project2.vcxproj.filters new file mode 100644 index 0000000..203a71c --- /dev/null +++ b/1/1/Project2/Project2.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;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/1/1/Project2/main.cpp b/1/1/Project2/main.cpp new file mode 100644 index 0000000..9c16ec5 --- /dev/null +++ b/1/1/Project2/main.cpp @@ -0,0 +1,23 @@ +//������������Ϸ��������һ��Ӣ��������Ϸ�����������ǽ�һ��Ӣ�ﵥ�ʵĵ�һ���������ص���ĸ�ƶ�����β���Ҽ��Ϻ�׺-ay��Ʃ�硰banana�����ɡ�anana-bay������������ά���ٿ����˽�������ݡ� +#include +#include +using namespace std; +const string & PigLati(string& str); +int main() +{ + cout << "����" << endl; + string str; + cin >> str; + PigLati(str); + cout << str << endl; + return 0; +} +const string & PigLati(string& str) +{ + string::size_type pos = str.find_first_of("aeiou"); + string sub = str.substr(0, pos); + str.erase(0, pos); + str.append(sub); + str.append("ay"); + return str; +} \ No newline at end of file From 5c571c2413dc6cc20ac1519ac6f0931343c17a19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=A8=20=E6=9D=A8?= <2310384192@qq.com> Date: Thu, 8 Feb 2018 09:40:43 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E4=B8=89=EF=BC=9A?= =?UTF-8?q?=E5=85=83=E9=9F=B3=E5=AD=97=E6=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1/1/1.sln | 12 ++- 1/1/1/main.cpp | 3 +- 1/1/Project2/main.cpp | 4 +- 1/1/Project3/Project3.vcxproj | 123 ++++++++++++++++++++++++++ 1/1/Project3/Project3.vcxproj.filters | 22 +++++ 1/1/Project3/main.cpp | 27 ++++++ 6 files changed, 186 insertions(+), 5 deletions(-) create mode 100644 1/1/Project3/Project3.vcxproj create mode 100644 1/1/Project3/Project3.vcxproj.filters create mode 100644 1/1/Project3/main.cpp diff --git a/1/1/1.sln b/1/1/1.sln index a68ab88..ed10328 100644 --- a/1/1/1.sln +++ b/1/1/1.sln @@ -1,12 +1,14 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 -VisualStudioVersion = 15.0.27004.2009 +VisualStudioVersion = 15.0.27130.2027 MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "1", "1\1.vcxproj", "{5834B115-B0D7-4268-A917-9887DCB13C5F}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Project2", "Project2\Project2.vcxproj", "{118CCF2B-A9A7-4E35-AC65-FEA43D883A39}" EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Project3", "Project3\Project3.vcxproj", "{EFB649CA-0EAE-4711-A0E2-05E92F929DFD}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x64 = Debug|x64 @@ -31,6 +33,14 @@ Global {118CCF2B-A9A7-4E35-AC65-FEA43D883A39}.Release|x64.Build.0 = Release|x64 {118CCF2B-A9A7-4E35-AC65-FEA43D883A39}.Release|x86.ActiveCfg = Release|Win32 {118CCF2B-A9A7-4E35-AC65-FEA43D883A39}.Release|x86.Build.0 = Release|Win32 + {EFB649CA-0EAE-4711-A0E2-05E92F929DFD}.Debug|x64.ActiveCfg = Debug|x64 + {EFB649CA-0EAE-4711-A0E2-05E92F929DFD}.Debug|x64.Build.0 = Debug|x64 + {EFB649CA-0EAE-4711-A0E2-05E92F929DFD}.Debug|x86.ActiveCfg = Debug|Win32 + {EFB649CA-0EAE-4711-A0E2-05E92F929DFD}.Debug|x86.Build.0 = Debug|Win32 + {EFB649CA-0EAE-4711-A0E2-05E92F929DFD}.Release|x64.ActiveCfg = Release|x64 + {EFB649CA-0EAE-4711-A0E2-05E92F929DFD}.Release|x64.Build.0 = Release|x64 + {EFB649CA-0EAE-4711-A0E2-05E92F929DFD}.Release|x86.ActiveCfg = Release|Win32 + {EFB649CA-0EAE-4711-A0E2-05E92F929DFD}.Release|x86.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/1/1/1/main.cpp b/1/1/1/main.cpp index 832115d..c411c0a 100644 --- a/1/1/1/main.cpp +++ b/1/1/1/main.cpp @@ -1,11 +1,10 @@ -//��ת�ַ�����������һ���ַ�����������ת������� + #include #include #include using namespace std; int main() { - //wstring ���ַ���ÿ���ַ�������Ӣ�Ķ�ռ�����ֽڣ�ֻ�Ƕ�Ӧcin��coutҪ�ij���Ӧ���� wcin.imbue(std::locale("chs")); wcout.imbue(std::locale("chs")); wstring str; diff --git a/1/1/Project2/main.cpp b/1/1/Project2/main.cpp index 9c16ec5..f6c4cc4 100644 --- a/1/1/Project2/main.cpp +++ b/1/1/Project2/main.cpp @@ -1,11 +1,11 @@ -//������������Ϸ��������һ��Ӣ��������Ϸ�����������ǽ�һ��Ӣ�ﵥ�ʵĵ�һ���������ص���ĸ�ƶ�����β���Ҽ��Ϻ�׺-ay��Ʃ�硰banana�����ɡ�anana-bay������������ά���ٿ����˽�������ݡ� +//拉丁猪文字游戏 #include #include using namespace std; const string & PigLati(string& str); int main() { - cout << "����" << endl; + cout << "ÊäÈë" << endl; string str; cin >> str; PigLati(str); diff --git a/1/1/Project3/Project3.vcxproj b/1/1/Project3/Project3.vcxproj new file mode 100644 index 0000000..9bc4625 --- /dev/null +++ b/1/1/Project3/Project3.vcxproj @@ -0,0 +1,123 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 15.0 + {EFB649CA-0EAE-4711-A0E2-05E92F929DFD} + Project3 + 10.0.16299.0 + + + + Application + true + v141 + MultiByte + + + Application + false + v141 + true + MultiByte + + + Application + true + v141 + MultiByte + + + Application + false + v141 + true + MultiByte + + + + + + + + + + + + + + + + + + + + + + + Level3 + Disabled + true + true + + + + + Level3 + Disabled + true + true + + + + + Level3 + MaxSpeed + true + true + true + true + + + true + true + + + + + Level3 + MaxSpeed + true + true + true + true + + + true + true + + + + + + + + + \ No newline at end of file diff --git a/1/1/Project3/Project3.vcxproj.filters b/1/1/Project3/Project3.vcxproj.filters new file mode 100644 index 0000000..203a71c --- /dev/null +++ b/1/1/Project3/Project3.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;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/1/1/Project3/main.cpp b/1/1/Project3/main.cpp new file mode 100644 index 0000000..5b1b65c --- /dev/null +++ b/1/1/Project3/main.cpp @@ -0,0 +1,27 @@ +//元音字母统计 +#include +#include +using namespace std; +int compute_word(string& str); +int main() +{ + cout << "input the string you wangt" << endl; + string str; + cin >> str; + int t=compute_word(str); + cout <<"the number of aioeu is"<< t << endl; + system("pause"); + return 0; + +} + int compute_word(string& str) +{ + std::size_t found = str.find_first_of("aeiou"); + int t = 0; + while (found != std::string::npos) + { + t++; + found = str.find_first_of("aeiou", found + 1); + } + return t; +} \ No newline at end of file