aboutsummaryrefslogtreecommitdiff
path: root/CST116F2021-Lab5/CST116F2021-Lab5.cpp
diff options
context:
space:
mode:
author[email protected] <[email protected]>2021-11-02 18:23:00 -0700
committer[email protected] <[email protected]>2021-11-02 18:23:00 -0700
commitc27a2d68f59ac753e04bc2983b6c5ae3acca69b3 (patch)
tree26871e00fdcd6a3c76caed61bbca8dbcef0ea8d6 /CST116F2021-Lab5/CST116F2021-Lab5.cpp
parentAdd online IDE url (diff)
downloadcst116-lab5-rayyanansari03-c27a2d68f59ac753e04bc2983b6c5ae3acca69b3.tar.xz
cst116-lab5-rayyanansari03-c27a2d68f59ac753e04bc2983b6c5ae3acca69b3.zip
Lab 5 answers V1
Diffstat (limited to 'CST116F2021-Lab5/CST116F2021-Lab5.cpp')
-rw-r--r--CST116F2021-Lab5/CST116F2021-Lab5.cpp20
1 files changed, 18 insertions, 2 deletions
diff --git a/CST116F2021-Lab5/CST116F2021-Lab5.cpp b/CST116F2021-Lab5/CST116F2021-Lab5.cpp
index e7591f7..9e34b3d 100644
--- a/CST116F2021-Lab5/CST116F2021-Lab5.cpp
+++ b/CST116F2021-Lab5/CST116F2021-Lab5.cpp
@@ -1,11 +1,27 @@
-// CST116F2021-Lab5.cpp : This file contains the 'main' function. Program execution begins and ends there.
+ // CST116F2021-Lab5.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
+using namespace std;
int main()
{
- std::cout << "Hello World!\n";
+ //std::cout << "Hello World!\n";
+
+ char lastName[11]{};
+ ///char firstname[11]{};
+ //int z[11]{};
+
+ cin >> lastName;
+
+ for (int x = 0; x < 10; x++) {
+
+ cout << &lastName[x] << endl;
+
+ }
+
+
+
}
// Run program: Ctrl + F5 or Debug > Start Without Debugging menu