Skip to content

Commit 4c87526

Browse files
committed
Added material for Section14
1 parent 2e2a57e commit 4c87526

Some content is hidden

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

65 files changed

+3998
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Session Name="C:\Users\frank\Desktop\CPPExamples\Section14\Section14.workspace">
3+
<int Value="2" Name="m_selectedTab"/>
4+
<wxString Value="C:\Users\frank\Desktop\CPPExamples\Section14\Section14.workspace" Name="m_workspaceName"/>
5+
<TabInfoArray Name="TabInfoArray">
6+
<TabInfo>
7+
<wxString Value="C:\Users\frank\Desktop\CPPExamples\Section14\Challenge-Solution2\Mystring.h" Name="FileName"/>
8+
<int Value="0" Name="FirstVisibleLine"/>
9+
<int Value="6" Name="CurrentLine"/>
10+
<wxArrayString Name="Bookmarks"/>
11+
<IntVector Name="CollapsedFolds"/>
12+
</TabInfo>
13+
<TabInfo>
14+
<wxString Value="C:\Users\frank\Desktop\CPPExamples\Section14\Challenge-Solution2\Mystring.cpp" Name="FileName"/>
15+
<int Value="147" Name="FirstVisibleLine"/>
16+
<int Value="155" Name="CurrentLine"/>
17+
<wxArrayString Name="Bookmarks"/>
18+
<IntVector Name="CollapsedFolds"/>
19+
</TabInfo>
20+
<TabInfo>
21+
<wxString Value="C:\Users\frank\Desktop\CPPExamples\Section14\Challenge-Solution2\main.cpp" Name="FileName"/>
22+
<int Value="12" Name="FirstVisibleLine"/>
23+
<int Value="12" Name="CurrentLine"/>
24+
<wxArrayString Name="Bookmarks"/>
25+
<IntVector Name="CollapsedFolds"/>
26+
</TabInfo>
27+
</TabInfoArray>
28+
<SerializedObject Name="m_breakpoints">
29+
<long Value="2" Name="Count"/>
30+
<SerializedObject Name="Breakpoint0">
31+
<wxString Value="C:\Users\frank\Desktop\CPPExamples\Section14\Mystring-copy-assignment\main.cpp" Name="file"/>
32+
<int Value="10" Name="lineno"/>
33+
<wxString Value="" Name="function_name"/>
34+
<wxString Value="" Name="memory_address"/>
35+
<int Value="1" Name="bp_type"/>
36+
<int Value="0" Name="watchpoint_type"/>
37+
<wxString Value="" Name="watchpt_data"/>
38+
<CData Name="commandlist"/>
39+
<bool Value="0" Name="regex"/>
40+
<bool Value="0" Name="is_temp"/>
41+
<bool Value="1" Name="is_enabled"/>
42+
<int Value="0" Name="ignore_number"/>
43+
<wxString Value="" Name="conditions"/>
44+
<int Value="0" Name="origin"/>
45+
</SerializedObject>
46+
<SerializedObject Name="Breakpoint1">
47+
<wxString Value="C:\Users\frank\Desktop\CPPExamples\Section14\Mystring-start\Mystring.cpp" Name="file"/>
48+
<int Value="13" Name="lineno"/>
49+
<wxString Value="" Name="function_name"/>
50+
<wxString Value="" Name="memory_address"/>
51+
<int Value="1" Name="bp_type"/>
52+
<int Value="0" Name="watchpoint_type"/>
53+
<wxString Value="" Name="watchpt_data"/>
54+
<CData Name="commandlist"/>
55+
<bool Value="0" Name="regex"/>
56+
<bool Value="0" Name="is_temp"/>
57+
<bool Value="1" Name="is_enabled"/>
58+
<int Value="0" Name="ignore_number"/>
59+
<wxString Value="" Name="conditions"/>
60+
<int Value="0" Name="origin"/>
61+
</SerializedObject>
62+
</SerializedObject>
63+
</Session>
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Workspace>
3+
<WorkspaceParserFlags flags="2"/>
4+
<WorkspaceParserPaths/>
5+
<Environment Name="&lt;Use Defaults&gt;"/>
6+
<WorkspaceParserMacros/>
7+
</Workspace>
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
C:\Users\frank\Desktop\CPPExamples\Section14\Challenge\main.cpp
2+
C:\Users\frank\Desktop\CPPExamples\Section14\Challenge\Mystring.cpp
3+
C:\Users\frank\Desktop\CPPExamples\Section14\Mystring-insertion-extraction\main.cpp
4+
C:\Users\frank\Desktop\CPPExamples\Section14\Mystring-insertion-extraction\Mystring.cpp
5+
C:\Users\frank\Desktop\CPPExamples\Section14\Mystring-start\main.cpp
6+
C:\Users\frank\Desktop\CPPExamples\Section14\Mystring-start\Mystring.cpp
7+
C:\Users\frank\Desktop\CPPExamples\Section14\Challenge-Solution2\main.cpp
8+
C:\Users\frank\Desktop\CPPExamples\Section14\Challenge-Solution2\Mystring.cpp
9+
C:\Users\frank\Desktop\CPPExamples\Section14\Mystring-copy-assignment\main.cpp
10+
C:\Users\frank\Desktop\CPPExamples\Section14\Mystring-copy-assignment\Mystring.cpp
11+
C:\Users\frank\Desktop\CPPExamples\Section14\Mystring-operator-functions\main.cpp
12+
C:\Users\frank\Desktop\CPPExamples\Section14\Mystring-operator-functions\Mystring.cpp
13+
C:\Users\frank\Desktop\CPPExamples\Section14\Mystring-move-assignment\main.cpp
14+
C:\Users\frank\Desktop\CPPExamples\Section14\Mystring-move-assignment\Mystring.cpp
15+
C:\Users\frank\Desktop\CPPExamples\Section14\Challenge-Solution1\main.cpp
16+
C:\Users\frank\Desktop\CPPExamples\Section14\Challenge-Solution1\Mystring.cpp
17+
C:\Users\frank\Desktop\CPPExamples\Section14\Mystring-operators\main.cpp
18+
C:\Users\frank\Desktop\CPPExamples\Section14\Mystring-operators\Mystring.cpp
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
##
2+
## Auto Generated makefile by CodeLite IDE
3+
## any manual changes will be erased
4+
##
5+
## Debug
6+
ProjectName :=Challenge-Solution1
7+
ConfigurationName :=Debug
8+
WorkspacePath :=C:/Users/frank/Desktop/CPPExamples/Section14
9+
ProjectPath :=C:/Users/frank/Desktop/CPPExamples/Section14/Challenge-Solution1
10+
IntermediateDirectory :=./Debug
11+
OutDir := $(IntermediateDirectory)
12+
CurrentFileName :=
13+
CurrentFilePath :=
14+
CurrentFileFullPath :=
15+
User :=frank
16+
Date :=07/02/2018
17+
CodeLitePath :="C:/Program Files/CodeLite"
18+
LinkerName :=C:/MinGW/bin/g++.exe
19+
SharedObjectLinkerName :=C:/MinGW/bin/g++.exe -shared -fPIC
20+
ObjectSuffix :=.o
21+
DependSuffix :=.o.d
22+
PreprocessSuffix :=.i
23+
DebugSwitch :=-g
24+
IncludeSwitch :=-I
25+
LibrarySwitch :=-l
26+
OutputSwitch :=-o
27+
LibraryPathSwitch :=-L
28+
PreprocessorSwitch :=-D
29+
SourceSwitch :=-c
30+
OutputFile :=$(IntermediateDirectory)/$(ProjectName)
31+
Preprocessors :=
32+
ObjectSwitch :=-o
33+
ArchiveOutputSwitch :=
34+
PreprocessOnlySwitch :=-E
35+
ObjectsFileList :="Challenge-Solution1.txt"
36+
PCHCompileFlags :=
37+
MakeDirCommand :=makedir
38+
RcCmpOptions :=
39+
RcCompilerName :=C:/MinGW/bin/windres.exe
40+
LinkOptions :=
41+
IncludePath := $(IncludeSwitch). $(IncludeSwitch).
42+
IncludePCH :=
43+
RcIncludePath :=
44+
Libs :=
45+
ArLibs :=
46+
LibPath := $(LibraryPathSwitch).
47+
48+
##
49+
## Common variables
50+
## AR, CXX, CC, AS, CXXFLAGS and CFLAGS can be overriden using an environment variables
51+
##
52+
AR := C:/MinGW/bin/ar.exe rcu
53+
CXX := C:/MinGW/bin/g++.exe
54+
CC := C:/MinGW/bin/gcc.exe
55+
CXXFLAGS := -std=c++14 -Wall -g -O0 -std=c++14 -Wall $(Preprocessors)
56+
CFLAGS := -g -O0 -Wall $(Preprocessors)
57+
ASFLAGS :=
58+
AS := C:/MinGW/bin/as.exe
59+
60+
61+
##
62+
## User defined environment variables
63+
##
64+
CodeLiteDir:=C:\Program Files\CodeLite
65+
Objects0=$(IntermediateDirectory)/main.cpp$(ObjectSuffix) $(IntermediateDirectory)/Mystring.cpp$(ObjectSuffix)
66+
67+
68+
69+
Objects=$(Objects0)
70+
71+
##
72+
## Main Build Targets
73+
##
74+
.PHONY: all clean PreBuild PrePreBuild PostBuild MakeIntermediateDirs
75+
all: $(OutputFile)
76+
77+
$(OutputFile): $(IntermediateDirectory)/.d $(Objects)
78+
@$(MakeDirCommand) $(@D)
79+
@echo "" > $(IntermediateDirectory)/.d
80+
@echo $(Objects0) > $(ObjectsFileList)
81+
$(LinkerName) $(OutputSwitch)$(OutputFile) @$(ObjectsFileList) $(LibPath) $(Libs) $(LinkOptions)
82+
83+
MakeIntermediateDirs:
84+
@$(MakeDirCommand) "./Debug"
85+
86+
87+
$(IntermediateDirectory)/.d:
88+
@$(MakeDirCommand) "./Debug"
89+
90+
PreBuild:
91+
92+
93+
##
94+
## Objects
95+
##
96+
$(IntermediateDirectory)/main.cpp$(ObjectSuffix): main.cpp $(IntermediateDirectory)/main.cpp$(DependSuffix)
97+
$(CXX) $(IncludePCH) $(SourceSwitch) "C:/Users/frank/Desktop/CPPExamples/Section14/Challenge-Solution1/main.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/main.cpp$(ObjectSuffix) $(IncludePath)
98+
$(IntermediateDirectory)/main.cpp$(DependSuffix): main.cpp
99+
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/main.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/main.cpp$(DependSuffix) -MM main.cpp
100+
101+
$(IntermediateDirectory)/main.cpp$(PreprocessSuffix): main.cpp
102+
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/main.cpp$(PreprocessSuffix) main.cpp
103+
104+
$(IntermediateDirectory)/Mystring.cpp$(ObjectSuffix): Mystring.cpp $(IntermediateDirectory)/Mystring.cpp$(DependSuffix)
105+
$(CXX) $(IncludePCH) $(SourceSwitch) "C:/Users/frank/Desktop/CPPExamples/Section14/Challenge-Solution1/Mystring.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/Mystring.cpp$(ObjectSuffix) $(IncludePath)
106+
$(IntermediateDirectory)/Mystring.cpp$(DependSuffix): Mystring.cpp
107+
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Mystring.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Mystring.cpp$(DependSuffix) -MM Mystring.cpp
108+
109+
$(IntermediateDirectory)/Mystring.cpp$(PreprocessSuffix): Mystring.cpp
110+
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/Mystring.cpp$(PreprocessSuffix) Mystring.cpp
111+
112+
113+
-include $(IntermediateDirectory)/*$(DependSuffix)
114+
##
115+
## Clean
116+
##
117+
clean:
118+
$(RM) -r ./Debug/
119+
120+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<CodeLite_Project Name="Challenge-Solution1" Version="10.0.0" InternalType="User templates">
3+
<Plugins>
4+
<Plugin Name="qmake">
5+
<![CDATA[00010001N0005Debug000000000000]]>
6+
</Plugin>
7+
</Plugins>
8+
<Description/>
9+
<Dependencies/>
10+
<Settings Type="Executable">
11+
<GlobalSettings>
12+
<Compiler Options="-std=c++14;-Wall" C_Options="" Assembler="">
13+
<IncludePath Value="."/>
14+
</Compiler>
15+
<Linker Options="">
16+
<LibraryPath Value="."/>
17+
</Linker>
18+
<ResourceCompiler Options=""/>
19+
</GlobalSettings>
20+
<Configuration Name="Debug" CompilerType="MinGW ( MinGW )" DebuggerType="GNU gdb debugger" Type="Executable" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
21+
<Compiler Options="-g;-O0;-std=c++14;-Wall" C_Options="-g;-O0;-Wall" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0">
22+
<IncludePath Value="."/>
23+
</Compiler>
24+
<Linker Options="" Required="yes"/>
25+
<ResourceCompiler Options="" Required="no"/>
26+
<General OutputFile="$(IntermediateDirectory)/$(ProjectName)" IntermediateDirectory="./Debug" Command="./$(ProjectName)" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="$(IntermediateDirectory)" PauseExecWhenProcTerminates="yes" IsGUIProgram="no" IsEnabled="yes"/>
27+
<BuildSystem Name="Default"/>
28+
<Environment EnvVarSetName="&lt;Use Defaults&gt;" DbgSetName="&lt;Use Defaults&gt;">
29+
<![CDATA[]]>
30+
</Environment>
31+
<Debugger IsRemote="no" RemoteHostName="" RemoteHostPort="" DebuggerPath="" IsExtended="yes">
32+
<DebuggerSearchPaths/>
33+
<PostConnectCommands/>
34+
<StartupCommands/>
35+
</Debugger>
36+
<PreBuild/>
37+
<PostBuild/>
38+
<CustomBuild Enabled="no">
39+
<RebuildCommand/>
40+
<CleanCommand/>
41+
<BuildCommand/>
42+
<PreprocessFileCommand/>
43+
<SingleFileCommand/>
44+
<MakefileGenerationCommand/>
45+
<ThirdPartyToolName>None</ThirdPartyToolName>
46+
<WorkingDirectory/>
47+
</CustomBuild>
48+
<AdditionalRules>
49+
<CustomPostBuild/>
50+
<CustomPreBuild/>
51+
</AdditionalRules>
52+
<Completion EnableCpp11="no" EnableCpp14="yes">
53+
<ClangCmpFlagsC/>
54+
<ClangCmpFlags/>
55+
<ClangPP/>
56+
<SearchPaths/>
57+
</Completion>
58+
</Configuration>
59+
<Configuration Name="Release" CompilerType="MinGW ( MinGW )" DebuggerType="GNU gdb debugger" Type="Executable" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
60+
<Compiler Options="-O2;-Wall" C_Options="-O2;-Wall" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0">
61+
<IncludePath Value="."/>
62+
<Preprocessor Value="NDEBUG"/>
63+
</Compiler>
64+
<Linker Options="" Required="yes"/>
65+
<ResourceCompiler Options="" Required="no"/>
66+
<General OutputFile="$(IntermediateDirectory)/$(ProjectName)" IntermediateDirectory="./Release" Command="./$(ProjectName)" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="$(IntermediateDirectory)" PauseExecWhenProcTerminates="yes" IsGUIProgram="no" IsEnabled="yes"/>
67+
<BuildSystem Name="Default"/>
68+
<Environment EnvVarSetName="&lt;Use Defaults&gt;" DbgSetName="&lt;Use Defaults&gt;">
69+
<![CDATA[]]>
70+
</Environment>
71+
<Debugger IsRemote="no" RemoteHostName="" RemoteHostPort="" DebuggerPath="" IsExtended="yes">
72+
<DebuggerSearchPaths/>
73+
<PostConnectCommands/>
74+
<StartupCommands/>
75+
</Debugger>
76+
<PreBuild/>
77+
<PostBuild/>
78+
<CustomBuild Enabled="no">
79+
<RebuildCommand/>
80+
<CleanCommand/>
81+
<BuildCommand/>
82+
<PreprocessFileCommand/>
83+
<SingleFileCommand/>
84+
<MakefileGenerationCommand/>
85+
<ThirdPartyToolName>None</ThirdPartyToolName>
86+
<WorkingDirectory/>
87+
</CustomBuild>
88+
<AdditionalRules>
89+
<CustomPostBuild/>
90+
<CustomPreBuild/>
91+
</AdditionalRules>
92+
<Completion EnableCpp11="no" EnableCpp14="no">
93+
<ClangCmpFlagsC/>
94+
<ClangCmpFlags/>
95+
<ClangPP/>
96+
<SearchPaths/>
97+
</Completion>
98+
</Configuration>
99+
</Settings>
100+
<VirtualDirectory Name="src">
101+
<File Name="main.cpp"/>
102+
<File Name="Mystring.h"/>
103+
<File Name="Mystring.cpp"/>
104+
</VirtualDirectory>
105+
</CodeLite_Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./Debug/main.cpp.o ./Debug/Mystring.cpp.o

0 commit comments

Comments
 (0)