Skip to content

Commit f9fa33d

Browse files
committed
新的工程
1 parent 3624173 commit f9fa33d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+301
-8
lines changed

codes/BK1_c3_19-20/BK1_c3_19-20.sdf

7.75 MB
Binary file not shown.

codes/BK1_c3_19-20/BK1_c3_19-20.sln

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2012
4+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BK1_c3_19-20", "BK1_c3_19-20\BK1_c3_19-20.vcxproj", "{012ACF50-25AA-4607-BFDE-EC67A0DFA24C}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|Win32 = Debug|Win32
9+
Release|Win32 = Release|Win32
10+
EndGlobalSection
11+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
12+
{012ACF50-25AA-4607-BFDE-EC67A0DFA24C}.Debug|Win32.ActiveCfg = Debug|Win32
13+
{012ACF50-25AA-4607-BFDE-EC67A0DFA24C}.Debug|Win32.Build.0 = Debug|Win32
14+
{012ACF50-25AA-4607-BFDE-EC67A0DFA24C}.Release|Win32.ActiveCfg = Release|Win32
15+
{012ACF50-25AA-4607-BFDE-EC67A0DFA24C}.Release|Win32.Build.0 = Release|Win32
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal
19 KB
Binary file not shown.
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
</ItemGroup>
13+
<PropertyGroup Label="Globals">
14+
<ProjectGuid>{012ACF50-25AA-4607-BFDE-EC67A0DFA24C}</ProjectGuid>
15+
<Keyword>Win32Proj</Keyword>
16+
<RootNamespace>BK1_c3_1920</RootNamespace>
17+
</PropertyGroup>
18+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
19+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
20+
<ConfigurationType>Application</ConfigurationType>
21+
<UseDebugLibraries>true</UseDebugLibraries>
22+
<PlatformToolset>v110</PlatformToolset>
23+
<CharacterSet>Unicode</CharacterSet>
24+
</PropertyGroup>
25+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
26+
<ConfigurationType>Application</ConfigurationType>
27+
<UseDebugLibraries>false</UseDebugLibraries>
28+
<PlatformToolset>v110</PlatformToolset>
29+
<WholeProgramOptimization>true</WholeProgramOptimization>
30+
<CharacterSet>Unicode</CharacterSet>
31+
</PropertyGroup>
32+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
33+
<ImportGroup Label="ExtensionSettings">
34+
</ImportGroup>
35+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
36+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
37+
</ImportGroup>
38+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
39+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
40+
</ImportGroup>
41+
<PropertyGroup Label="UserMacros" />
42+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
43+
<LinkIncremental>true</LinkIncremental>
44+
</PropertyGroup>
45+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
46+
<LinkIncremental>false</LinkIncremental>
47+
</PropertyGroup>
48+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
49+
<ClCompile>
50+
<PrecompiledHeader>
51+
</PrecompiledHeader>
52+
<WarningLevel>Level3</WarningLevel>
53+
<Optimization>Disabled</Optimization>
54+
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
55+
</ClCompile>
56+
<Link>
57+
<SubSystem>Console</SubSystem>
58+
<GenerateDebugInformation>true</GenerateDebugInformation>
59+
</Link>
60+
</ItemDefinitionGroup>
61+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
62+
<ClCompile>
63+
<WarningLevel>Level3</WarningLevel>
64+
<PrecompiledHeader>
65+
</PrecompiledHeader>
66+
<Optimization>MaxSpeed</Optimization>
67+
<FunctionLevelLinking>true</FunctionLevelLinking>
68+
<IntrinsicFunctions>true</IntrinsicFunctions>
69+
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
70+
</ClCompile>
71+
<Link>
72+
<SubSystem>Console</SubSystem>
73+
<GenerateDebugInformation>true</GenerateDebugInformation>
74+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
75+
<OptimizeReferences>true</OptimizeReferences>
76+
</Link>
77+
</ItemDefinitionGroup>
78+
<ItemGroup>
79+
<ClCompile Include="main.cpp" />
80+
</ItemGroup>
81+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
82+
<ImportGroup Label="ExtensionTargets">
83+
</ImportGroup>
84+
</Project>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="源文件">
5+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<Filter Include="头文件">
9+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
11+
</Filter>
12+
<Filter Include="资源文件">
13+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15+
</Filter>
16+
</ItemGroup>
17+
<ItemGroup>
18+
<ClCompile Include="main.cpp">
19+
<Filter>源文件</Filter>
20+
</ClCompile>
21+
</ItemGroup>
22+
</Project>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#v4.0:v110:false
2+
Debug|Win32|C:\Users\Jing\Desktop\计算机\codes\BK1_c3_19-20\|
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
生成启动时间为 2015/6/10 23:41:35。
2+
1>项目“C:\Users\Jing\Desktop\计算机\codes\BK1_c3_19-20\BK1_c3_19-20\BK1_c3_19-20.vcxproj”在节点 2 上(Build 个目标)。
3+
1>InitializeBuildStatus:
4+
正在对“Debug\BK1_c3_19-20.unsuccessfulbuild”执行 Touch 任务。
5+
ClCompile:
6+
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc110.pdb" /Gd /TP /analyze- /errorReport:prompt main.cpp
7+
main.cpp
8+
Link:
9+
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"C:\Users\Jing\Desktop\计算机\codes\BK1_c3_19-20\Debug\BK1_c3_19-20.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:\Users\Jing\Desktop\计算机\codes\BK1_c3_19-20\Debug\BK1_c3_19-20.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\Jing\Desktop\计算机\codes\BK1_c3_19-20\Debug\BK1_c3_19-20.lib" /MACHINE:X86 Debug\main.obj
10+
BK1_c3_19-20.vcxproj -> C:\Users\Jing\Desktop\计算机\codes\BK1_c3_19-20\Debug\BK1_c3_19-20.exe
11+
FinalizeBuildStatus:
12+
正在删除文件“Debug\BK1_c3_19-20.unsuccessfulbuild”。
13+
正在对“Debug\BK1_c3_19-20.lastbuildstate”执行 Touch 任务。
14+
1>已完成生成项目“C:\Users\Jing\Desktop\计算机\codes\BK1_c3_19-20\BK1_c3_19-20\BK1_c3_19-20.vcxproj”(Build 个目标)的操作。
15+
16+
生成成功。
17+
18+
已用时间 00:00:04.90
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��
Binary file not shown.
Binary file not shown.
Binary file not shown.
382 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
#include<iostream>
2+
#include <string>
3+
#include<vector>
4+
using namespace std;
5+
int operPriority(char a);
6+
int main(){
7+
string oper_str;
8+
cout<<"请输入表达式"<<endl;
9+
cin>>oper_str;
10+
cout<<"输入表达式为:"<<oper_str<<endl;
11+
vector<string>result_vec;
12+
vector<string>opera_vec;
13+
string temp_str="";
14+
for(unsigned i=0; i<oper_str.length();i++ ){
15+
if(oper_str[i]>='0' && oper_str[i]<='9'){//数字
16+
temp_str += oper_str[i];
17+
}else{
18+
if(temp_str.length()>0){
19+
result_vec.push_back(temp_str);
20+
temp_str = "";
21+
}
22+
int cur_prio = operPriority(oper_str[i]);
23+
if(cur_prio==0){
24+
cout<<"表达式输入有误"<<endl;
25+
break;
26+
}else if(oper_str[i]==')'){
27+
vector<string>::iterator it;
28+
bool is_find = false;
29+
for(it=opera_vec.end();it!=opera_vec.begin();it--){
30+
cout<<*it<<endl;
31+
if(1){
32+
result_vec.push_back(*it);
33+
opera_vec.erase(it);
34+
}else{
35+
opera_vec.erase(it);
36+
is_find = true;
37+
break;
38+
}
39+
}
40+
41+
if(!is_find){
42+
cout<<"表达式1输入有误"<<endl;
43+
break;
44+
}
45+
}else{
46+
vector<string>::iterator it;
47+
for(it=opera_vec.end();it!=opera_vec.begin();it--){
48+
string it_str = *it;
49+
int temp_prio = operPriority(it_str[0]);
50+
if(temp_prio>=cur_prio){
51+
result_vec.push_back(*it);
52+
opera_vec.erase(it);
53+
}else{
54+
break;
55+
}
56+
}
57+
string op_str = "";
58+
op_str+= oper_str[i];
59+
opera_vec.push_back(op_str);
60+
}
61+
}
62+
}
63+
system("pause");
64+
return 0;
65+
}
66+
67+
int operPriority(char a){
68+
if(a=='+'||a=='-'){
69+
return 1;
70+
}else if(a=='*'||a=='/'){
71+
return 2;
72+
}else if(a=='^'){
73+
return 3;
74+
}else if(a=='(' || a==')'){
75+
return 4;
76+
}else{
77+
return 0;
78+
}
79+
}
106 KB
Binary file not shown.
495 KB
Binary file not shown.
891 KB
Binary file not shown.

codes/Bk1_c3_10/Bk1_c3_10.sdf

0 Bytes
Binary file not shown.

codes/Bk1_c3_10/Bk1_c3_10.v11.suo

2.5 KB
Binary file not shown.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
C:\USERS\JING\DESKTOP\计算机\CODES\BK1_C3_10\BK1_C3_10\DEBUG\MAIN.OBJ
2+
C:\USERS\JING\DESKTOP\计算机\CODES\BK1_C3_10\BK1_C3_10\DEBUG\VC110.PDB
3+
C:\USERS\JING\DESKTOP\计算机\CODES\BK1_C3_10\DEBUG\BK1_C3_10.ILK
4+
C:\USERS\JING\DESKTOP\计算机\CODES\BK1_C3_10\DEBUG\BK1_C3_10.EXE
5+
C:\USERS\JING\DESKTOP\计算机\CODES\BK1_C3_10\DEBUG\BK1_C3_10.PDB
6+
C:\Users\Jing\Desktop\计算机\codes\Bk1_c3_10\Bk1_c3_10\Debug\main.obj
7+
C:\Users\Jing\Desktop\计算机\codes\Bk1_c3_10\Bk1_c3_10\Debug\cl.command.1.tlog
8+
C:\Users\Jing\Desktop\计算机\codes\Bk1_c3_10\Bk1_c3_10\Debug\CL.read.1.tlog
9+
C:\Users\Jing\Desktop\计算机\codes\Bk1_c3_10\Bk1_c3_10\Debug\CL.write.1.tlog
10+
C:\Users\Jing\Desktop\计算机\codes\Bk1_c3_10\Bk1_c3_10\Debug\link-cvtres.read.1.tlog
11+
C:\Users\Jing\Desktop\计算机\codes\Bk1_c3_10\Bk1_c3_10\Debug\link-cvtres.write.1.tlog
12+
C:\Users\Jing\Desktop\计算机\codes\Bk1_c3_10\Bk1_c3_10\Debug\link-rc.read.1.tlog
13+
C:\Users\Jing\Desktop\计算机\codes\Bk1_c3_10\Bk1_c3_10\Debug\link-rc.write.1.tlog
14+
C:\Users\Jing\Desktop\计算机\codes\Bk1_c3_10\Bk1_c3_10\Debug\link.command.1.tlog
15+
C:\Users\Jing\Desktop\计算机\codes\Bk1_c3_10\Bk1_c3_10\Debug\link.read.1.tlog
16+
C:\Users\Jing\Desktop\计算机\codes\Bk1_c3_10\Bk1_c3_10\Debug\link.write.1.tlog
17+
C:\Users\Jing\Desktop\计算机\codes\Bk1_c3_10\Bk1_c3_10\Debug\vc110.idb
18+
C:\Users\Jing\Desktop\计算机\codes\Bk1_c3_10\Bk1_c3_10\Debug\vc110.pdb
19+
C:\Users\Jing\Desktop\计算机\codes\Bk1_c3_10\Debug\Bk1_c3_10.pdb
20+
C:\Users\Jing\Desktop\计算机\codes\Bk1_c3_10\Debug\Bk1_c3_10.exe
21+
C:\Users\Jing\Desktop\计算机\codes\Bk1_c3_10\Debug\Bk1_c3_10.ilk
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
生成启动时间为 2015/6/10 0:00:09
1+
生成启动时间为 2015/6/10 22:10:54
22
1>项目“C:\Users\Jing\Desktop\计算机\codes\Bk1_c3_10\Bk1_c3_10\Bk1_c3_10.vcxproj”在节点 2 上(Build 个目标)。
33
1>InitializeBuildStatus:
44
正在创建“Debug\Bk1_c3_10.unsuccessfulbuild”,因为已指定“AlwaysCreate”。
55
ClCompile:
66
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc110.pdb" /Gd /TP /analyze- /errorReport:prompt main.cpp
77
main.cpp
8-
1>c:\users\jing\desktop\计算机\codes\bk1_c3_10\bk1_c3_10\main.cpp(16): warning C4101: “current”: 未引用的局部变量
98
Link:
109
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"C:\Users\Jing\Desktop\计算机\codes\Bk1_c3_10\Debug\Bk1_c3_10.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:\Users\Jing\Desktop\计算机\codes\Bk1_c3_10\Debug\Bk1_c3_10.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\Jing\Desktop\计算机\codes\Bk1_c3_10\Debug\Bk1_c3_10.lib" /MACHINE:X86 Debug\main.obj
1110
Bk1_c3_10.vcxproj -> C:\Users\Jing\Desktop\计算机\codes\Bk1_c3_10\Debug\Bk1_c3_10.exe
@@ -16,4 +15,4 @@
1615

1716
生成成功。
1817

19-
已用时间 00:00:02.45
18+
已用时间 00:00:02.55
-156 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
1.76 KB
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

codes/Bk1_c3_10/Bk1_c3_10/main.cpp

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ int main(){
1313
cout<<"M="<<M<<";N="<<N<<endl;
1414
//³õʼ»¯Á´±í
1515
Node* nodeList = (Node *)(malloc(sizeof(struct Node)));
16-
Node* temp,current;
17-
cout<<nodeList<<endl;
18-
//current = nodeList;
16+
Node* temp,*current;
17+
current = nodeList;
1918
for(int i=1;i<=N;i++){
2019
temp = (Node *)(malloc(sizeof(struct Node)));
2120
if(temp==NULL){
@@ -24,9 +23,42 @@ int main(){
2423
}
2524
temp->NodeValue = i;
2625
temp->Next = NULL;
27-
nodeList->Next = temp;
28-
nodeList = temp;
26+
current->Next = temp;
27+
current = temp;
28+
//cout<<temp->NodeValue<<endl;
2929
}
30+
int remain_num = N, count=0;
31+
temp = nodeList;
32+
current = nodeList->Next;
33+
cout<<"clear value:";
34+
while(remain_num>1){
35+
if(current==NULL){
36+
temp = nodeList;
37+
current = nodeList->Next;
38+
}
39+
if(count==M){
40+
Node* clearNode = current;
41+
temp->Next = current->Next;
42+
cout<<clearNode->NodeValue<<",";
43+
current = current->Next;
44+
free(clearNode);
45+
--remain_num;
46+
count = 0;
47+
}else{
48+
++count;
49+
temp = current;
50+
current = current->Next;
51+
}
52+
}
53+
cout<<endl;
54+
cout<<"remain num:"<<nodeList->Next->NodeValue<<endl;
55+
56+
int f_remain = 0;
57+
for(int i=2;i<=N;i++){
58+
f_remain = (f_remain+M+1)%i;
59+
}
60+
cout<<"remian num:"<<f_remain+1<<endl;
61+
3062
system("pause");
3163
return 0;
3264
}

codes/Bk1_c3_10/Debug/Bk1_c3_10.exe

1 KB
Binary file not shown.

codes/Bk1_c3_10/Debug/Bk1_c3_10.ilk

-57.5 KB
Binary file not shown.

codes/Bk1_c3_10/Debug/Bk1_c3_10.pdb

-8 KB
Binary file not shown.

0 commit comments

Comments
 (0)