Skip to content

Commit b6c96f9

Browse files
committed
.
1 parent 205c80b commit b6c96f9

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

Advanced-Cpp-Programming.vcxproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
<ClInclude Include="Template Classes and Functions\Template-class.h" />
135135
</ItemGroup>
136136
<ItemGroup>
137-
<ClCompile Include="Cpp%2711 New features\Standard-function-type.cpp" />
137+
<ClCompile Include="Cpp%2711 New features\mutable-lambda.cpp" />
138138
<ClCompile Include="Operator Overloading\Complex.cpp" />
139139
</ItemGroup>
140140
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />

Advanced-Cpp-Programming.vcxproj.filters

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<ClCompile Include="Operator Overloading\Complex.cpp">
3333
<Filter>Source Files</Filter>
3434
</ClCompile>
35-
<ClCompile Include="Cpp%2711 New features\Standard-function-type.cpp">
35+
<ClCompile Include="Cpp%2711 New features\mutable-lambda.cpp">
3636
<Filter>Source Files</Filter>
3737
</ClCompile>
3838
</ItemGroup>
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Learn Advance C++ Programming
2+
// Mutable Lambdas
3+
4+
#include<iostream>
5+
6+
using namespace std;
7+
8+
9+
10+
int main() {
11+
12+
int cats = 5;
13+
14+
[cats]() mutable{
15+
cats = 8;
16+
cout << cats << endl;
17+
}();
18+
19+
return 0;
20+
}

0 commit comments

Comments
 (0)