Skip to content

Instantly share code, notes, and snippets.

@SteelPh0enix
Last active July 12, 2017 07:24
Show Gist options
  • Save SteelPh0enix/6aca157adcb8ae6bdeda2ac1656866f5 to your computer and use it in GitHub Desktop.
Save SteelPh0enix/6aca157adcb8ae6bdeda2ac1656866f5 to your computer and use it in GitHub Desktop.
fixed - proper initialisation
#include <cmath>
#include <iostream>
int main() {
double power {std::pow(2., 3.)};
std::cout << "2 to the power of 3: " << power << std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment