SHARE
TWEET

Untitled

a guest Dec 8th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<iostream>
  2. #include<fstream>
  3. #include<string>
  4. using namespace std;
  5. struct sv
  6. {
  7.     string ma;
  8.     string ten;
  9.     string ngays;
  10.     string que;
  11. }a;
  12. int main()
  13. {
  14.     freopen("msv.txt","r",stdin);
  15.     //cout<<"nhap ma sv ";
  16.     getline(cin,a.ma);
  17.     //cout<<"nhap ten tuoi ";
  18.     getline( cin,a.ten);
  19.     //cout<<"nhap ngay sinh ";
  20.     getline(cin,a.ngays);
  21.     //cout<<"nhap que quan ";
  22.     getline(cin,a.que);
  23.     fclose(stdin);
  24.     cout<<"THONG TIN SINH VIEN"<<endl;
  25.     cout<<"Ma sinh vien : ";
  26.     cout<<a.ma<<endl;
  27.     cout<<"Ho va ten : ";
  28.     cout<<a.ten<<endl;
  29.     cout<<"Ngay sinh : ";
  30.     cout<<a.ngays<<endl;
  31.     cout<<"Que quan : ";
  32.     cout<<a.que<<endl;
  33.     return 0;
  34. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top