aboutsummaryrefslogtreecommitdiff
path: root/Inclass 10/program.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Inclass 10/program.cpp')
-rw-r--r--Inclass 10/program.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Inclass 10/program.cpp b/Inclass 10/program.cpp
index e591996..c1191ec 100644
--- a/Inclass 10/program.cpp
+++ b/Inclass 10/program.cpp
@@ -15,7 +15,10 @@ int main()
{
Node newNode{};
- newNode.data = 32;
+ int i;
+ cin >> i;
+
+ newNode.data = i;
cout << newNode.data << endl;
@@ -38,6 +41,6 @@ int main()
Square(&nextNode);
cout << nextNode.data << endl;
-
+
return 0;
} \ No newline at end of file