From 8804cafc7e1245872d50b6763fef042fa6288e49 Mon Sep 17 00:00:00 2001 From: Connor McDowell Date: Sat, 17 Feb 2024 20:21:55 -0800 Subject: maybe for got to push --- Inclass 10/program.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Inclass 10/program.cpp') 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 -- cgit v1.2.3