ok modificato....(mi sento un po idiota a non essermi accorto di un errore cosi XD)
ora il codice èperò quando lo compilo parte ma nella fase di inserimento della lettera si bloccacodice:#include <iostream>#include <string> using namespace std; int main() { char c[101]; char d[101]; char e='n'; char f; char h; char t[101]; int i; int tentativis; int tentativie; bool g=false; cout<<"give me a word to find"; cin>>c; while(e=='n'){ cout<<"give me a letter"; cin>>f; while(c[i]!='/0'){ if (f==c[i]){d[i]=c[i]; bool g=true; cout<<d[i]; } i++; } if(g==true){tentativie++; g=false; }else{tentativis++;} cout<<" want you to give me the word? s/n"; cin>>h; if(h=='s'){cout<<"give me the word"; cin>>t; if(t==c){cout<<"right you are the winner"; break;}else{cout<<"you has wrong";} } cout<<"are you done? s/n"; cin>>e; } cout<<"the word was"<<c; cout<<tentativie<<"right attempts"; cout<<tentativis<<"attempts"; return 0; }