it-praxisportal/courses/cpp/05_einstieg_cpp_und_namespaces/aufgabe.cpp

11 lines
No EOL
219 B
C++

#include <iostream>
#include <string>
namespace Mathe {
// 🎯 TEILZIEL 1 (TODO 1): Vertausche zwei Werte per Referenz
void swap(int& a, int& b) {
int temp = a;
a = b;
b = temp;
}
}