repo update

This commit is contained in:
2022-04-04 15:41:31 -05:00
parent 1156c003f9
commit 16003d1715
20 changed files with 13101 additions and 13046 deletions

View File

@@ -1,25 +1,25 @@
#include <iostream>
using namespace std;
/*
void swap(int x, int y) {
int temp = x;
x = y;
y = temp;
}
*/
void swap(int* x, int* y) {
int temp = *x;
*x = *y;
*y = temp;
}
int main() {
int A = 2;
int B = 8;
// Pass in addresses to be
swap(&A,&B);
cout << "A: " << A << " B: " << B << endl;
return 0;
#include <iostream>
using namespace std;
/*
void swap(int x, int y) {
int temp = x;
x = y;
y = temp;
}
*/
void swap(int* x, int* y) {
int temp = *x;
*x = *y;
*y = temp;
}
int main() {
int A = 2;
int B = 8;
// Pass in addresses to be
swap(&A,&B);
cout << "A: " << A << " B: " << B << endl;
return 0;
}