class from descriptionThu, 27 Apr 2023

como ocultar una palabra a la hora de imprimir usando scanf y, printf

#include <iostream> #include <string> #include <cstdio> using namespace std; int main() { string word; cout << "Enter the word: "; getline(cin, word); int len = word.length(); char ch; for(int i = 0; i < len; i++) { if(word[i] != ' ') { ch = word[i] + 1; } else { ch = ' '; } cout << ch; } cout << endl; return 0; }

Want to kickstart your project?Use the new AI Studio to create your code