Untitled
unknown
c_cpp
a year ago
268 B
0
Indexable
Never
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; for (int i = 0; i < s.length(); i++) { if (s[i] == '.') { s[i] = 'a'; } else if (s[i] == '-') { s[i] = '+'; } } cout << s.length() << endl; cout << s; }