🔒 Closed Pa help po pls using string po

Status
Not open for further replies.
wag dito sa fb pages ka humingi nang tulong mas responsive dun tsaka gawa ka muna draft bago mag pa tulong dito may service din ako sa fiverr pero mahal.
 
C++:
#include <iostream>
#include <string>
using namespace std;

int main()
{
    string input;
    char vowels[5] = { 'A', 'E', 'I', 'O', 'U' };
    char jeje[5] = {'@','^','!','*','$'};

    cout << "Input name: ";
    getline (cin, input);

    for(int i=0;i<input.length(); i++)
    {
        char c = toupper(input[i]);
        for (int j = 0; j < 5; j++)
        {
            if (c==vowels[j])
            {
                input[i] = jeje[j];
            }
        }
    }

    cout << "Encrypted name: " << input;

    return 0;
}

not sure kung gagana
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 3
    Replies
  • 425
    Views
  • 2
    Participants
Last reply from:
Iaminkwo

Trending Topics

Online now

Members online
479
Guests online
2,129
Total visitors
2,608

Forum statistics

Threads
2,331,976
Posts
29,261,536
Members
1,147,960
Latest member
juantwotwodecimal8
Back
Top