🔒 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
  • 421
    Views
  • 2
    Participants
Last reply from:
Iaminkwo

Trending Topics

Online now

Members online
1,226
Guests online
2,324
Total visitors
3,550

Forum statistics

Threads
2,319,131
Posts
29,198,979
Members
1,180,210
Latest member
googlegvv
Back
Top