Generation

generate functionFri, 14 Apr 2023

comparar dos palabras tipo string indicar si son iguales o diferentes

bool compare(string a, string b){ int i =0; for (i = 0; i < strlen(a); i++) { if (a[i] != b[i]) { return false; } } return true; }

Questions about programming?Chat with your personal AI assistant