Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  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. cout<<"nhap ma sv ";
  15. cin>>a.ma;
  16. cout<<"nhap ten tuoi ";
  17. cin>>a.ten;
  18. cout<<"nhap ngay sinh ";
  19. cin>>a.ngays;
  20. cout<<"nhap que quan ";
  21. cin>>a.que;
  22. freopen("msv.txt","w+",stdout);
  23. //cout<<"THONG TIN SINH VIEN"<<endl;
  24. cout<<"Ma sinh vien : ";
  25. cout<<a.ma<<endl;
  26. cout<<"Ho va ten : ";
  27. cout<<a.ten<<endl;
  28. cout<<"Ngay sinh : ";
  29. cout<<a.ngays<<endl;
  30. cout<<"Que quan : ";
  31. cout<<a.que<<endl;
  32. fclose(stdout);
  33. return 0;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement