#include<stdio.h>
#include<iostream>
using namespace std;
#include<string>
int main()
{
struct Sinh_Vien
{
string Hoten;
string NgayThangNamSinh;
long int MSSV;
string DiaChi;
}SV1;
cout<<"Nhap Ten Sinh Vien Cua Ban:";
getline(cin,SV1.Hoten);
cout<<"Nhap Ngay Thang Nam Sinh :";
getline(cin,SV1.NgayThangNamSinh);
cout<<"Nhap Ma So Sinh Vien :";
cin>>SV1.MSSV;
fflush(stdin);
cout<<"Nhap Dia Chi:";
getline(cin,SV1.DiaChi);
cout<<"\n\t\tthong tin sinh vien cua ban la:\n";
cout<<"\nTen Sinh Vien Cua Ban ::"<<SV1.Hoten;
cout<<"\nNgay Thang Nam Sinh ::"<<SV1.NgayThangNamSinh;
cout<<"\nMa So Sinh Vien ::"<<SV1.MSSV;
cout<<"\nDia Chi ::"<<SV1.DiaChi<<"\n";
system("pause");
return 0;
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.