Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
539 B
0
Indexable
Never
#include <iostream>
#include <string>
using namespace std;

int main()
{
    //string s;
    //cin >> s;
    /*string zhora;
    s.length();
    cout << s.length();

    zhora[0] = 'g';
    cout << zhora;*/
    
    string p1;
    int sum = 0;
    cin >> p1;
    for ( int i = 0; i < p1.length(); i++)
    {
        if (p1[i] == '.')
        {
            p1[i] = 'a';
        }
        else if (p1[i] == '-')
        {
            p1[i] = '+';
        }
        
    }
    cout << p1.length()<< " " << p1;
}