i wanted to make a function and then checks if the user reboot or not. and in the int main function i want to call from that function. the code i have so far isnt working and need help.
#include <iostream>
void support(std::string apple){
std::cout << "Hi!\n";
std::cout << "Did you reboot? Enter Y if yes or N if no.\n";
std::cin >> apple;
if (apple == "Y"){
std::cout << "Restore";
}
else if ( apple == "N"){
std::cout << "Reboot";
}
else{
std::cout << "Error";
}
}