diff options
Diffstat (limited to 'Inclass 10/program.cpp')
| -rw-r--r-- | Inclass 10/program.cpp | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/Inclass 10/program.cpp b/Inclass 10/program.cpp index d3f8005..59231d5 100644 --- a/Inclass 10/program.cpp +++ b/Inclass 10/program.cpp @@ -13,20 +13,23 @@ using std::endl; int main() { - Node firstNode{}; - Node secondNode{}; - Node thirdNode{}; + Node newNode{}; - firstNode._data = 24; - secondNode._data = 16; - thirdNode._data = 4; + newNode.data = 32; + cout << newNode.data << endl; - Swap(&firstNode, &secondNode); + Node nextNode{}; - Standardize_101(&thirdNode); + nextNode.data = 438; - Square(&thirdNode); + newNode.next = &nextNode; + + Swap(&newNode, &nextNode); + + Standardize_101(&newNode); + + Square(&nextNode); return 0; }
\ No newline at end of file |