Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created September 3, 2019 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/0e13fc43378adbab44d708b966ab53ad to your computer and use it in GitHub Desktop.
Save parzibyte/0e13fc43378adbab44d708b966ab53ad to your computer and use it in GitHub Desktop.
#include <iostream>
// https://parzibyte.me/blog/2019/06/19/namespaces-cpp-using-namespace/
using namespace std;
int main() {
int numero = 0;
string numeroComoCadena = "2811";
numero = stoi(numeroComoCadena);
std::cout << "El número es " << numero << " y el doble del mismo es "
<< numero * 2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment