Last active
March 28, 2016 14:27
-
-
Save mishelashala/08cb459110c5c5c40e45 to your computer and use it in GitHub Desktop.
This file contains 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
// incluyo iostream para entradas y salidas estándar | |
#include <iostream> | |
// incluyo string | |
#include <string> | |
int main () { | |
// declaro una variable de tipo string y le asigno "Hola mundo" | |
std::string str = "Hola mundo"; | |
// redirecciono a la salida stándar el tamaño de str | |
std::cout << str.size << std::endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment