Skip to content

Commit 1227f69

Browse files
committed
Add Variables in C++
1 parent f7e6b8d commit 1227f69

File tree

6 files changed

+22
-45
lines changed

6 files changed

+22
-45
lines changed

HelloWorld/HelloWorld.vcxproj

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
<Platform>x64</Platform>
1919
</ProjectConfiguration>
2020
</ItemGroup>
21+
<ItemGroup>
22+
<ClCompile Include="Main.cpp" />
23+
</ItemGroup>
2124
<PropertyGroup Label="Globals">
2225
<VCProjectVersion>16.0</VCProjectVersion>
2326
<Keyword>Win32Proj</Keyword>
@@ -137,13 +140,6 @@
137140
<GenerateDebugInformation>true</GenerateDebugInformation>
138141
</Link>
139142
</ItemDefinitionGroup>
140-
<ItemGroup>
141-
<ClCompile Include="Log.cpp" />
142-
<ClCompile Include="Math.cpp" />
143-
</ItemGroup>
144-
<ItemGroup>
145-
<ClInclude Include="Log.h" />
146-
</ItemGroup>
147143
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
148144
<ImportGroup Label="ExtensionTargets">
149145
</ImportGroup>

HelloWorld/HelloWorld.vcxproj.filters

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,8 @@
1515
</Filter>
1616
</ItemGroup>
1717
<ItemGroup>
18-
<ClCompile Include="Math.cpp">
18+
<ClCompile Include="Main.cpp">
1919
<Filter>Fichiers sources</Filter>
2020
</ClCompile>
21-
<ClCompile Include="Log.cpp">
22-
<Filter>Fichiers sources</Filter>
23-
</ClCompile>
24-
</ItemGroup>
25-
<ItemGroup>
26-
<ClInclude Include="Log.h">
27-
<Filter>Fichiers d%27en-tête</Filter>
28-
</ClInclude>
2921
</ItemGroup>
3022
</Project>

HelloWorld/Log.cpp

Lines changed: 0 additions & 12 deletions
This file was deleted.

HelloWorld/Log.h

Lines changed: 0 additions & 3 deletions
This file was deleted.

HelloWorld/Main.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#include <iostream>
2+
3+
int main()
4+
{
5+
char a = 'A';
6+
std::cout << a << std::endl;
7+
8+
unsigned int variable = 8; // -4b -> 4b
9+
std::cout << variable << std::endl;
10+
11+
variable = 20;
12+
std::cout << sizeof(variable) << std::endl;
13+
14+
float floatVariable = 5.5f;
15+
std::cout << floatVariable << std::endl;
16+
17+
std::cin.get();
18+
}

HelloWorld/Math.cpp

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)