Skip to content

Instantly share code, notes, and snippets.

@maxgoren
Created October 22, 2021 18:33
Show Gist options
  • Save maxgoren/badbee04caa2caccb89804ee09052c4c to your computer and use it in GitHub Desktop.
Save maxgoren/badbee04caa2caccb89804ee09052c4c to your computer and use it in GitHub Desktop.
#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