Created
March 27, 2017 23:27
-
-
Save sebassdc/c738cdd797596577ee73e279a8706406 to your computer and use it in GitHub Desktop.
Modo de leer cadenas completas en c++
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> | |
#include <string> | |
using namespace std; | |
int main (void) | |
{ | |
string s; | |
cin.getline((char*)s.c_str(), 256); | |
cout << s.c_str(); | |
system("PAUSE"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ya teniendo ingresado la cadena de esta manera ¿ cómo se haría para realizar operaciones con ella, como igualarla con otra cadena y compararlas por ejemplo?