fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. string nome = "teste";
  6. cout << nome[nome.length() - 1] << endl;
  7. }
  8.  
  9. //https://pt.stackoverflow.com/q/512924/101
Success #stdin #stdout 0.01s 5504KB
stdin
Standard input is empty
stdout
e