Created
August 25, 2020 14:53
-
-
Save ampulhetadosaber/9090f788657f5686b346e06b108f53ef 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
string palavra = "Abacaxi"; | |
cout << palavra[2] << "\n"; // Imprimir o caractere na posição 2 | |
palavra[0] = 'X'; // Mudar o caractere na posição "0" para 'X' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment