Untitled
unknown
c_cpp
8 months ago
446 B
1
Indexable
Never
#include <iostream> #include <string> using namespace std; void zag(string& a) { if (a[0] > 96 and a[0] < 123) a[0] -= 32; } void asd(string& a, string& b, string& c, string& s) { zag(a); zag(b); zag(c); 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