Hello! I'm working on a school project and running into an issue where I can't execute my code due to this error message. I can include other pieces of the code if it's helpful, but I think this is the only part that's relevant. Can anyone help me find what's causing it? Thanks o7
float setnet(string nettype, int days) {
system ("CLS");
cout << "\t\t Internet Accessed (Y/N): "; getline(cin, nettype);
nettype = toupper(nettype[0]);
if (nettype == "N")
nettype = "No Internet";
return NONE;
if (nettype == "Y") {
cout << "\t\tAccess\n\n";
cout << "\t1- Wired\n";
cout << "\t2- Not-Wired (Wireless)\n";
cout << "\t\tEnter choice 1 or 2:"; getline(cin, nettype);
nettype = toupper(nettype[0]);
if (nettype == "1", "W", "w") {
nettype = "Wired";
return days * WIRED;
}
else if (nettype == "2", "N", "n") {
nettype = "Wireless";
return days * WIRELESS;
}
}
}```