#include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ using namespace std; void convertion(string s); int main(int argc, char** argv) { string str; cout<<"Escreva uma frase sem espacos: "; getline(cin, str); int i; cout<<"Apresentada invertida: \n"; for(i = str.length() - 1; i >= 0; i--) //usando o string lengh, mas poderia usar conversão implicita { cout<=0; i--) { cout << cstr[i]; } }