Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <stdlib.h>
- #include <string>
- #include <Windows.h>
- using namespace std;
- void main()
- {
- string a,b,c,d,e,f,g,h,i,j;
- SetConsoleCP(1251);
- SetConsoleOutputCP(1251);
- setlocale(LC_ALL, "rus");
- cout<<"Введите вашу фамилию:";
- getline(cin,b);
- cout<<"Введите ваше имя:";
- getline(cin,a);
- cout<<"Введите ваше отчество:";
- getline(cin,c);
- cout<<"Введите ваш пол:";
- getline(cin,d);
- cout<<"Ввведите вашу дату рождения:";
- getline(cin,e);
- cout << "Введите ваш адрес:";
- getline(cin,f);
- cout << "Введите ваш номер телефона:";
- getline(cin,g);
- cout << "Введите ваше место учебы:";
- getline(cin,h);
- cout << "в каком классе вы учитесь? ";
- getline(cin,i);
- cout << "Какие у вас хоббии? ";
- getline(cin,j);
- system("cls");
- cout.width(43);
- cout<<right <<"АНКЕТА"<<endl<<endl;
- cout.width(20);
- cout<<left<<"Фамилия";
- cout.width(20);
- cout<<left<<"Имя";
- cout.width(20);
- cout<<left<<"Отчество"<<endl;
- cout.width(20);
- cout<<left<<"-------";
- cout.width(20);
- cout<<left<<"---";
- cout.width(20);
- cout<<left<<"--------"<<endl;
- cout.width(20);
- cout<<left<<b;
- cout.width(20);
- cout<<left<<a;
- cout.width(20);
- cout<<left<<c<<endl<<endl;
- cout.width(20);
- cout<<left<<"Пол";
- cout.width(20);
- cout<<left<<"Дата рождения";
- cout.width(20);
- cout<<left<<"Номер телефона"<<endl;
- cout.width(20);
- cout<<left<<"---";
- cout.width(20);
- cout<<left << "-------------";
- cout.width(20);
- cout<<left << "--------------"<<endl;
- cout.width(20);
- cout<<left<<d;
- cout.width(20);
- cout<<left<<e;
- cout.width(20);
- cout<<left<<g<<endl<<endl;
- cout.width(20);
- cout<<left<<"Адрес"<<endl;
- cout.width(20);
- cout<<left<<"-----";
- cout.width(20);
- cout<<left<<endl;
- cout.width(20);
- cout<<left<<f<<endl<<endl;
- cout.width(20);
- cout<<left<<"Место учебы";
- cout.width(20);
- cout<<left<<"Класс"<<endl;
- cout.width(20);
- cout<<left<<"-----------";
- cout.width(20);
- cout<<left<<"------"<<endl;
- cout.width(20);
- cout<<left<<h;
- cout.width(20);
- cout<<left<<i<<endl<<endl;
- cout.width(20);
- cout<<left<<"Хобби"<<endl;
- cout.width(20);
- cout<<left<<"-----"<<endl;
- cout.width(20);
- cout<<left<<j<<endl<<endl;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement