Skip to content

Commit 49e9c2a

Browse files
committed
.
1 parent 15eef46 commit 49e9c2a

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-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\A-ring-buffer-class.cpp" />
137+
<ClCompile Include="Cpp%2711 New features\Initializing-in-cpp-98.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\A-ring-buffer-class.cpp">
35+
<ClCompile Include="Cpp%2711 New features\Initializing-in-cpp-98.cpp">
3636
<Filter>Source Files</Filter>
3737
</ClCompile>
3838
</ItemGroup>

Cpp'11 New features/Initializing-in-cpp-98.cpp

+15
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,22 @@ using namespace std;
44

55
int main() {
66

7+
int values[] = {1, 4, 5};
78

9+
class S1 {
10+
public:
11+
string text;
12+
int id;
13+
};
14+
15+
S1 s1 = { "Hello", 7 };
16+
17+
struct C {
18+
string text;
19+
int id;
20+
};
21+
22+
C c1 = {"Hello", 7};
823

924
return 0;
1025
}

0 commit comments

Comments
 (0)