nano_sardo |
|
| Non da nessun errore. Il codice č una cosa del tipo: CODICE #include <iostream> #include <string>
using namespace std;
int main() { string scelta = ""; string testo = ""; cin>>scelta; while(scelta == "codifica") { cin>>testo; for ( int i = 0; i < testo.length(); i++) { if (testo[i] =='a') { testo.replace(i,1,"97,1"); i+=4; } } //PARENTESI DI FINE CICLO FOR } cout<<testo<<endl; getchar(); getchar(); return 0; }
|
| |