Created
October 22, 2021 18:33
-
-
Save maxgoren/badbee04caa2caccb89804ee09052c4c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
std::pair<double, string> baz(int foo, int bar) | |
{ | |
double ans = double(foo)/double(bar); | |
return std::make_pair(ans, "Just Because."); | |
} | |
int main() | |
{ | |
auto [answer, reply] = baz(8, 3); | |
std::cout<<answer<<" - "<<reply<<"\n"; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment