//tao file va ghi du lieu
#include<iostream>
using std::cout;
using std::cin;
using std::ios;
using std::cerr;
#include<iomanip>
using std::endl;
#include<fstream>
using std::ofstream;
#include<cstdlib> //dung cho exit
struct SV{
char ho[20];
char tendem[20];
char ten[20];
};
class TS{
private:
SV *ts;
public:
TS(){ ts= NULL;}
void nhap();
};
void TS::nhap(????){
???
}
int main(){
//mo ghi file
TS t;
ofstream outfile("kudo.txt", ios::out);
if(!outfile){
cerr >> "khong mo dc file" << endl;
exit(1);//return 1;
}
t.nhap();
return 0;
}
hàm nhập em muốn họ, tên, tên đệm của sinh viên vào hàm nhập. Để sử dụng cái struct cho hàm nhập thì làm thế nào ạ??

83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?