aboutsummaryrefslogtreecommitdiff
path: root/Inclass-9/Program.cpp
blob: 014935d77ff97184fda555e4b29e6acc98691b04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// name: Connor McDowell
// date: 2/8/2024
// class: CIS116
// reason: Inclass exercise 9

#include <iostream>
#include "ReferenceExamples.h"

using std::cin;
using std::cout;
using std::endl;

struct node
{
	int data;

};

int main()
{
	/*basicreferences();
	node newNode = {};

	newNode.data = 32;

	//DoublesNodeData(&newNode);

	cout << newNode.data << endl;*/

	int x = 5, y = 72;
	int n = 4392;

	Swap(x, y);

	cout << "x = " << x << ", y = " << y << endl;

	Standardize_101(n);

	cout << "modded n = " << n << endl;

	Square(x);

	cout << "Squared x = " << x << " remember, x = the value of y now" << endl;


	return 0;
}