Untitled
unknown
c_cpp
8 months ago
345 B
1
Indexable
Never
#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; }
Leave a Comment