summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdwardFine <[email protected]>2022-10-05 16:05:45 -0700
committerEdwardFine <[email protected]>2022-10-05 16:05:45 -0700
commitbc99b57ce57a44541b90bb31e214460cd521963d (patch)
tree69a887f8bc0ba4e5c1f6eb772fef44a5e08474d5
parentSetting up GitHub Classroom Feedback (diff)
downloadcst116-lab1-edwardfine-bc99b57ce57a44541b90bb31e214460cd521963d.tar.xz
cst116-lab1-edwardfine-bc99b57ce57a44541b90bb31e214460cd521963d.zip
Prompt for Length and Width
-rw-r--r--BlankConsoleLab/BlankConsoleLab.vcxproj10
-rw-r--r--BlankConsoleLab/CST116-Lab1-Fine.cpp (renamed from BlankConsoleLab/BlankConsoleLab.cpp)9
2 files changed, 13 insertions, 6 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.vcxproj b/BlankConsoleLab/BlankConsoleLab.vcxproj
index db2e734..649a51e 100644
--- a/BlankConsoleLab/BlankConsoleLab.vcxproj
+++ b/BlankConsoleLab/BlankConsoleLab.vcxproj
@@ -29,26 +29,26 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v142</PlatformToolset>
+ <PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v142</PlatformToolset>
+ <PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v142</PlatformToolset>
+ <PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v142</PlatformToolset>
+ <PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
@@ -139,7 +139,7 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
- <ClCompile Include="BlankConsoleLab.cpp" />
+ <ClCompile Include="CST116-Lab1-Fine.cpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/CST116-Lab1-Fine.cpp
index ed5f807..b46897c 100644
--- a/BlankConsoleLab/BlankConsoleLab.cpp
+++ b/BlankConsoleLab/CST116-Lab1-Fine.cpp
@@ -11,6 +11,13 @@ using std::endl;
int main()
{
- cout << "Hello World!\n";
+ int length;
+ int width;
+
+ cout << "How long is your kite in centimeters? ";
+ cin >> length;
+ cout << endl << "How wide is your kite in centimeters? ";
+ cin >> width;
+
}