Dear Team,
Im currently trying to find a site or program that will run this script, i have tried to run it but it fails to run, the website for this is KMeans Clustering for Customer Data | Kaggle
Can anyone please assist.
void create()
{
// file pointer
fstream fout;
// opens an existing csv file or creates a new file.
fout.open("benign_traffic.csv", ios::out | ios::app);
cout << "Enter the details of 5 students:"
<< " roll name maths phy chem bio";
<< endl;
int i, roll, phy, chem, math, bio;
string name;
// Read the input
for (i = 0; i < 5; i++) {
cin >> roll
>> name
>> math
>> phy
>> chem
>> bio;
// Insert the data to file
fout << roll << ", "
<< name << ", "
<< math << ", "
<< phy << ", "
<< chem << ", "
<< bio
<< "\n";
}
}