From Voluminous Eider, 9 Months ago, written in Plain Text.
Embed
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. class sinhvien {
  5. private:
  6.         int masv;
  7.         char ten[20];
  8.         int namsinh;
  9.         float diemtongket;
  10. public:
  11.         void nhap() {
  12.                 cout << "\nMa sinh vien:"; cin >> masv;
  13.                 cout << "\nTen :"; cin >> ten;
  14.                 cout << "\nNam sinh:"; cin >> namsinh;
  15.                 cout << "\nDiem tong ket:"; cin >> diemtongket;
  16.         }
  17.         void xuat() {
  18.                 cout << "\nMa sinh vien:"<< masv;
  19.                 cout << "\nTen :"<< ten;
  20.                 cout << "\nNam sinh:"<<namsinh;
  21.                 cout << "\nDiem tong ket:"<<diemtongket;
  22.         }
  23.  
  24. };
  25.  
  26. int main() {
  27.         sinhvien sv;
  28.         sv.nhap();
  29.         sv.xuat();
  30.         system("pause");
  31.         return 0;
  32.  
  33. }

Replies to Untitled rss

Title Name Language When
Re: Untitled Chocolate Agouti text 9 Months ago.