Advertisement
MargaritaOwl

ANKETA

May 14th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.46 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <stdlib.h>
  4. #include <string>
  5. #include <Windows.h>
  6. using namespace std;
  7.  
  8. void main()
  9. {
  10.     string a,b,c,d,e,f,g,h,i,j;
  11.     SetConsoleCP(1251);
  12.     SetConsoleOutputCP(1251);
  13.     setlocale(LC_ALL, "rus");
  14.     cout<<"Введите вашу фамилию:";
  15.     getline(cin,b);
  16.     cout<<"Введите ваше имя:";
  17.     getline(cin,a);
  18.     cout<<"Введите ваше отчество:";
  19.     getline(cin,c);
  20.     cout<<"Введите ваш пол:";
  21.     getline(cin,d);
  22.     cout<<"Ввведите вашу дату рождения:";
  23.     getline(cin,e);
  24.     cout << "Введите ваш адрес:";
  25.     getline(cin,f);
  26.     cout << "Введите ваш номер телефона:";
  27.     getline(cin,g);
  28.     cout << "Введите ваше место учебы:";
  29.     getline(cin,h);
  30.     cout << "в каком классе вы учитесь? ";
  31.     getline(cin,i);
  32.     cout << "Какие у вас хоббии? ";
  33.     getline(cin,j);
  34.  
  35.     system("cls");
  36.    
  37.     cout.width(43);
  38.     cout<<right <<"АНКЕТА"<<endl<<endl;
  39.     cout.width(20);
  40.     cout<<left<<"Фамилия";
  41.     cout.width(20);
  42.     cout<<left<<"Имя";
  43.     cout.width(20);
  44.     cout<<left<<"Отчество"<<endl;
  45.     cout.width(20);
  46.     cout<<left<<"-------";
  47.     cout.width(20);
  48.     cout<<left<<"---";
  49.     cout.width(20);
  50.     cout<<left<<"--------"<<endl;
  51.     cout.width(20);
  52.     cout<<left<<b; 
  53.     cout.width(20);
  54.     cout<<left<<a;
  55.     cout.width(20);
  56.     cout<<left<<c<<endl<<endl;
  57.     cout.width(20);
  58.     cout<<left<<"Пол";
  59.     cout.width(20);
  60.     cout<<left<<"Дата рождения";
  61.     cout.width(20);
  62.     cout<<left<<"Номер телефона"<<endl;
  63.     cout.width(20);
  64.     cout<<left<<"---";
  65.     cout.width(20);
  66.     cout<<left << "-------------";
  67.     cout.width(20);
  68.     cout<<left << "--------------"<<endl;
  69.     cout.width(20);
  70.     cout<<left<<d;
  71.     cout.width(20);
  72.     cout<<left<<e;
  73.     cout.width(20);
  74.     cout<<left<<g<<endl<<endl;
  75.     cout.width(20);
  76.     cout<<left<<"Адрес"<<endl;
  77.     cout.width(20);
  78.     cout<<left<<"-----";
  79.     cout.width(20);
  80.     cout<<left<<endl;
  81.     cout.width(20);
  82.     cout<<left<<f<<endl<<endl;
  83.     cout.width(20);
  84.     cout<<left<<"Место учебы";
  85.     cout.width(20);
  86.     cout<<left<<"Класс"<<endl;
  87.     cout.width(20);
  88.     cout<<left<<"-----------";
  89.     cout.width(20);
  90.     cout<<left<<"------"<<endl;
  91.     cout.width(20);
  92.     cout<<left<<h;
  93.     cout.width(20);
  94.     cout<<left<<i<<endl<<endl;
  95.     cout.width(20);
  96.     cout<<left<<"Хобби"<<endl;
  97.     cout.width(20);
  98.     cout<<left<<"-----"<<endl;
  99.     cout.width(20);
  100.     cout<<left<<j<<endl<<endl;
  101.     system("pause");
  102. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement