// Program.cpp function code file. #include #include "ReferenceExamples.h" using std::cin; using std::cout; using std::endl; void Swap(int& x, int& y) { int& swap_x = x; int& swap_y = y; int temp; temp = y; swap_y = x; swap_x = temp; x = swap_x; y = swap_y; } void Standardize_101(int& n) { n = n % 101; } void Square(int& x) { x = x * x; } void basicreferences() { int variable = 15; int& ref = variable; int* address = &variable; ref++; cout << variable << endl; cout << address << endl; } struct node { int data; }; void DoublesNodeData(node node) { node.data *= 2; } void DoublesNodeDataRef(node& node) { node.data *= 2; } void DoublesNodeData(node* node) { node->data *= 2; }