I want to make a program to convert normal text into owo text. Here is my code:
#include <iostream>
using namespace std;
int main() {
string text;
cout << "Text: " << endl;
cin >> text;
string chars[16] = {};
for (int i = 0; i > text.length(); i++) {
string character = text[i];
if (character == 'r') {
chars[i] = 'w';
}
else if (character == 'l') {
chars[i] = 'w';
}
else {
chars[i] = character;
}
}
return 0;
}
What am I doing wrong here? I am a beginner. I started learning C++ today.
Aucun commentaire:
Enregistrer un commentaire