aboutsummaryrefslogtreecommitdiff
path: root/10b/10.8.7/10.8.7.cpp
diff options
context:
space:
mode:
authorJacobAKnox <[email protected]>2021-10-30 10:17:32 -0700
committerJacobAKnox <[email protected]>2021-10-30 10:17:32 -0700
commit89ec8373bb3b9a18c7ab8dde76c66dc17fc04cbf (patch)
tree76ae896117c180809ba0b8a5bf92dd16c633e9eb /10b/10.8.7/10.8.7.cpp
parent10.a finished (diff)
downloadcst116-lab5-jacobaknox-master.tar.xz
cst116-lab5-jacobaknox-master.zip
10b completeHEADmaster
Diffstat (limited to '10b/10.8.7/10.8.7.cpp')
-rw-r--r--10b/10.8.7/10.8.7.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/10b/10.8.7/10.8.7.cpp b/10b/10.8.7/10.8.7.cpp
new file mode 100644
index 0000000..9099123
--- /dev/null
+++ b/10b/10.8.7/10.8.7.cpp
@@ -0,0 +1,24 @@
+// 10.8.7.cpp : This file contains the 'main' function. Program execution begins and ends there.
+//
+
+#include <iostream>
+#include "header.h"
+
+using namespace std;
+
+int main()
+{
+ char s1[50]{}, s2[50]{};
+ int n;
+
+ GetInput(s1, s2, n);
+
+ if (Compare(s1, s2, n))
+ {
+ cout << "Same";
+ }
+ else
+ {
+ cout << "Different";
+ }
+}