strcpy(Name,ui->lineEdit->setText(QString::fromStdString(Name)) ); strcpy(Class,ui->lineEdit_1->setText(QString::fromStdString(Class))); strcpy(Grade,ui->lineEdit_2->setText(QString::fromStdString(Grade))); std::ofstream myfile; myfile.open(mypath,std::fstream::in | std::fstream::out ); myfile<<Name<<"\t"<<"Name"<<"\n"; myfile<<Class<<"\t"<<"Class"<<"\n"; myfile<<Grade<<"\t"<<"Grade"<<"\n";
Quote: AA. Name BB Class CC Grade
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)