Untitled
unknown
c_cpp
2 years ago
345 B
10
Indexable
#include <iostream>
#include <string>
using namespace std;
void asd(string& a, string& b, string& c, string& s)
{
s = a;
s.push_back(' ');
s.push_back(b[0]);
s += ".";
s.push_back(c[0]);
s += ".";
}
int main()
{
setlocale(LC_ALL, "russain");
string a, b, c, s = "";
cin >> a >> b >> c;
asd(a, b, c, s);
cout << s;
}Editor is loading...
Leave a Comment