Код: Выделить всё
#include
#include
#include
using namespace std;
int main ()
{
int n=1,i=1;
std::string name, grade, gpa;
while(n==1)
{
std::cout grade;
std::cout > gpa;
std::ofstream file("Student" + std::to_string(i) + ".txt");
file
Подробнее здесь: [url]https://stackoverflow.com/questions/78708980/qt-creator-and-multiple-text-files[/url]